version 1.73, 2010/02/22 20:41:16 |
version 1.74, 2010/04/18 13:41:29 |
|
|
struct keylist *keylist; |
struct keylist *keylist; |
struct env_data envdata; |
struct env_data envdata; |
struct msg_command_data cmddata; |
struct msg_command_data cmddata; |
|
struct sigaction sigact; |
char *s, *shellcmd, *path, *label, *home, *cause; |
char *s, *shellcmd, *path, *label, *home, *cause; |
char cwd[MAXPATHLEN], **var; |
char cwd[MAXPATHLEN], **var; |
void *buf; |
void *buf; |
|
|
exit(1); |
exit(1); |
} |
} |
|
|
|
/* Catch SIGCHLD to avoid a zombie when starting the server. */ |
|
memset(&sigact, 0, sizeof sigact); |
|
sigemptyset(&sigact.sa_mask); |
|
sigact.sa_handler = SIG_IGN; |
|
if (sigaction(SIGCHLD, &sigact, NULL) != 0) |
|
fatal("sigaction failed"); |
|
|
|
/* Initialise the client socket/start the server. */ |
if ((main_ibuf = client_init(path, cmdflags, flags)) == NULL) |
if ((main_ibuf = client_init(path, cmdflags, flags)) == NULL) |
exit(1); |
exit(1); |
xfree(path); |
xfree(path); |