46 if (WIFEXITED (
status) != 0)
51 if (WIFSIGNALED (
status) != 0)
54 kill (getpid (),
ret);
69main (
int argc,
char *argv[])
77 "arg 1: timeout in sec., arg 2: executable, arg<n> arguments\n");
104 execvp (argv[2], &argv[2]);
110 printf (
"Child processes were killed after timeout of %u seconds\n",
static int ret
Final status code.
static struct GNUNET_TIME_Relative timeout
User defined timestamp for completing operations.
static int status
The program status; 0 for success.
static void sigint_handler(int val)
int main(int argc, char *argv[])
static void sigchld_handler(int val)