[-] lab5 2c
by zabrielo - Wednesday, 17 May 2017 16:43:30
about the signals, if the fork() return number that greater than 0. i set for all 5 signals SIG_DFL(signal(<signal name>, SIG_DFL))?
what if there is no change(fork() return 0), what about the signals.


Re: lab5 2c
by gmayer - Friday, 19 May 2017 01:00:23
If fork() returns 0 this is not an error, but an indication that this is the child process. An error is indicated when fork() returns -1.

Where do you set these SIG_DFL, in the parent or in the child??