If I used fork() and execv() to spawn several child processes running in the background and I wanted to bring one of them to the foreground, how could I do that?
I am trying to write a shell that can start processes either in the foreground or background.
"Background" and "foreground" are not terms used generically for processes, but rather only apply to shells which can wait for jobs on demand.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With