small tool starting a child process, waiting that it terminates or killing it after a given timeout period More...
#include "platform.h"
#include <sys/types.h>
#include <sys/wait.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
Go to the source code of this file.
Functions | |
static void | sigchld_handler (int val) |
static void | sigint_handler (int val) |
int | main (int argc, char *argv[]) |
Variables | |
static pid_t | child |
small tool starting a child process, waiting that it terminates or killing it after a given timeout period
Definition in file gnunet-timeout.c.
|
static |
|
static |
Definition at line 61 of file gnunet-timeout.c.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 69 of file gnunet-timeout.c.
References child, sigchld_handler(), sigint_handler(), and timeout.
|
static |
Definition at line 35 of file gnunet-timeout.c.
Referenced by get_file_information(), main(), mark_as_reachable(), and sigchld_handler().