#include "dtool_config.h"#include "gnu_getopt.h"#include <stdio.h>#include <errno.h>#include <string.h>#include <unistd.h>#include <sys/types.h>#include <sys/wait.h>#include <sys/stat.h>#include <fcntl.h>#include <time.h>#include <signal.h>#include <stdlib.h>Go to the source code of this file.
Defines | |
| #define | TIME_BUFFER_SIZE 128 |
| #define | COUNT_RESPAWN 5 |
| #define | COUNT_RESPAWN_TIME 30 |
Functions | |
| void | exec_process () |
| int | spawn_process () |
| void | sigterm_handler () |
| void | do_autorestart () |
| void | double_fork () |
| void | usage () |
| void | help () |
| int | main (int argc, char *argv[]) |
Variables | |
| char ** | params = NULL |
| char * | logfile_name = NULL |
| int | logfile_fd = -1 |
| int | stop_on_terminate = 0 |
| pid_t | child_pid = 0 |
Definition in file autorestart.c.
|
|
Definition at line 51 of file autorestart.c. Referenced by do_autorestart(). |
|
|
Definition at line 52 of file autorestart.c. |
|
|
Definition at line 47 of file autorestart.c. Referenced by do_autorestart(), and sigterm_handler(). |
|
|
Definition at line 148 of file autorestart.c. References COUNT_RESPAWN, sigterm_handler(), TIME_BUFFER_SIZE, and time_t. |
|
|
Definition at line 215 of file autorestart.c. |
|
|
Definition at line 55 of file autorestart.c. |
|
|
Definition at line 273 of file autorestart.c. |
|
||||||||||||
|
Definition at line 289 of file autorestart.c. References logfile_name, optarg, optind, and stop_on_terminate. |
|
|
Definition at line 121 of file autorestart.c. References child_pid, TIME_BUFFER_SIZE, and time_t. Referenced by do_autorestart(). |
|
|
Definition at line 71 of file autorestart.c. References child_pid. |
|
|
Definition at line 266 of file autorestart.c. |
|
|
Definition at line 45 of file autorestart.c. Referenced by sigterm_handler(), and spawn_process(). |
|
|
Definition at line 42 of file autorestart.c. |
|
|
Definition at line 41 of file autorestart.c. Referenced by main(). |
|
|
Definition at line 40 of file autorestart.c. Referenced by exec_process(). |
|
|
Definition at line 43 of file autorestart.c. Referenced by main(). |
1.3