3 ms·
I guess you could fork first?
by jontro 6y ago
I guess you could fork first?
- jasonjayr 6y agoFork then handle child/exec error codes appropriately.
- usr1106 6y agoRight, if the child runs as the user, the parent still running as root can reliably handle the situation that the user killed the child. Don't remember having seen that. Well, sshd does it, but for more obvious reasons than handling signals.
- usr1106 6y agoForking does not affect the possibility to receive signals, does it?