Fork() kill() and execv()?

Execv() replaces the current process with a new process. When firefox is started via execv() the printf("IVE BEEN KILLED\n") essentially no longer exists in the process and will never be executed (see man execv ). It would be possible for the parent process to wait for the child firefox to exit by using wait() or to be alerted to the death of the child process via a signal (e.g. Signal(SIGCHLD, child_exit_handler) ).

You've killed the child and it doesn't catch the signal so it just dies. At least it would if exec returned, but it doesn't. So you'd only execute the print if the exec failed.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions