Go to the source code of this file.
Functions | |
void | spawn (Process_T P, Command_T C) |
Execute the given command. |
This function fork's twice to avoid creating any zombie processes. Inspired by code from W. Richard Stevens book, APUE.
Definition in file spawn.c.
|
Execute the given command. If the execution fails, an alert message is sent to the email addresses found in the process object that has registred interest for restart alerts.
Definition at line 84 of file spawn.c. References mycommand::arg, ASSERT, gc_mail_list(), log(), redirect_stdfd(), Run, sendmail(), signal(), and myrun::umask. |