28 #include <sys/types.h>
46 if (WIFEXITED (
status) != 0)
51 if (WIFSIGNALED (
status) != 0)
54 kill (getpid (),
ret);
69 main (
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
Return value of the commandline.
static struct GNUNET_TIME_Relative timeout
Desired timeout for the lookup (default is no timeout).
uint16_t status
See PRISM_STATUS_*-constants.
static void sigint_handler(int val)
int main(int argc, char *argv[])
static void sigchld_handler(int val)