Go to the source code of this file.
Typedefs | |
typedef unsigned int | BYTE |
Functions | |
int | abort_writelog (SOCKET skt, int code, const char *msg) |
char | startProgram (const char *exeName, const char *args, const char *cwd, char *env) |
void | goFaceless (void) |
int | main () |
void | envCat (char *dest, LPTSTR oldEnv) |
const char ** | args2argv (const char *args, const char **argv, const char *exe) |
Variables | |
FILE * | logfile |
char startProgram | ( | const char * | exeName, | |
const char * | args, | |||
const char * | cwd, | |||
char * | env | |||
) |
Definition at line 203 of file daemon.C.
References daemon_err2status(), daemon_status2msg(), envCat(), logfile, and statusCode.
Referenced by main().
void goFaceless | ( | void | ) |
Definition at line 42 of file daemon.C.
References abort_writelog(), ChMessageInt(), free(), goFaceless(), logfile, malloc(), skt_accept(), skt_close(), skt_init(), skt_print_ip(), skt_recvN(), skt_sendN(), skt_server(), skt_set_abort(), startProgram(), statusCode, and stats::time().
void envCat | ( | char * | dest, | |
LPTSTR | oldEnv | |||
) |
Definition at line 187 of file daemon.C.
References src.
Referenced by arg_init(), and startProgram().
const char** args2argv | ( | const char * | args, | |
const char ** | argv, | |||
const char * | exe | |||
) |
FILE* logfile |