Kannel: Open Source WAP and SMS gateway
svn-r5336
|
#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>
#include <limits.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <fcntl.h>
#include <signal.h>
Go to the source code of this file.
Macros | |
#define | NUM_EXTRA ((int) (sizeof(extra_arguments) / sizeof(*extra_arguments))) |
Functions | |
static void | print_usage (FILE *stream) |
static void | build_box_arglist (char *boxfile, int argc, char **argv) |
static void | write_pidfile (void) |
static void | remove_pidfile (void) |
static void | rebind_standard_streams (void) |
static int | open_max (void) |
static void | close_extra_files (void) |
static void | signal_transfer (int signum) |
static void | signal_transfer_and_die (int signum) |
static void | setup_signals (void) |
static int | main_loop (char *boxfile) |
int | main (int argc, char *argv[]) |
Variables | |
static char * | progname |
static char ** | box_arglist |
static int | min_restart_delay = 60 |
static pid_t | child_box |
static char * | pidfile |
static int | use_extra_args = 1 |
static char * | extra_arguments [] |
#define NUM_EXTRA ((int) (sizeof(extra_arguments) / sizeof(*extra_arguments))) |
Definition at line 84 of file run_kannel_box.c.
Referenced by build_box_arglist().
|
static |
Definition at line 96 of file run_kannel_box.c.
References box_arglist, extra_arguments, free(), malloc(), NUM_EXTRA, progname, and use_extra_args.
Referenced by main().
|
static |
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 307 of file run_kannel_box.c.
References build_box_arglist(), close_extra_files(), main_loop(), min_restart_delay, pidfile, print_usage(), progname, rebind_standard_streams(), remove_pidfile(), setup_signals(), use_extra_args, and write_pidfile().
|
static |
Definition at line 262 of file run_kannel_box.c.
References box_arglist, child_box, and min_restart_delay.
Referenced by main().
|
static |
Definition at line 193 of file run_kannel_box.c.
Referenced by close_extra_files().
|
static |
|
static |
|
static |
Definition at line 155 of file run_kannel_box.c.
References pidfile.
Referenced by main(), and signal_transfer_and_die().
|
static |
Definition at line 250 of file run_kannel_box.c.
References signal_transfer(), and signal_transfer_and_die().
Referenced by main().
|
static |
Definition at line 221 of file run_kannel_box.c.
References child_box.
Referenced by setup_signals().
|
static |
Definition at line 231 of file run_kannel_box.c.
References child_box, and remove_pidfile().
Referenced by setup_signals().
|
static |
Definition at line 128 of file run_kannel_box.c.
References pidfile, and progname.
Referenced by main().
|
static |
Definition at line 74 of file run_kannel_box.c.
Referenced by build_box_arglist(), and main_loop().
|
static |
Definition at line 76 of file run_kannel_box.c.
Referenced by main_loop(), signal_transfer(), and signal_transfer_and_die().
|
static |
Definition at line 81 of file run_kannel_box.c.
Referenced by build_box_arglist().
|
static |
Definition at line 75 of file run_kannel_box.c.
Referenced by main(), and main_loop().
|
static |
Definition at line 77 of file run_kannel_box.c.
Referenced by main(), remove_pidfile(), and write_pidfile().
|
static |
Definition at line 73 of file run_kannel_box.c.
Referenced by build_box_arglist(), main(), print_usage(), rebind_standard_streams(), and write_pidfile().
|
static |
Definition at line 78 of file run_kannel_box.c.
Referenced by build_box_arglist(), and main().