version 1.231, 2011/01/06 23:01:35 |
version 1.232, 2011/01/16 11:50:36 |
|
|
|
|
/* Execute the proxy command. Note that we gave up any |
/* Execute the proxy command. Note that we gave up any |
extra privileges above. */ |
extra privileges above. */ |
|
signal(SIGPIPE, SIG_DFL); |
execv(argv[0], argv); |
execv(argv[0], argv); |
perror(argv[0]); |
perror(argv[0]); |
exit(1); |
exit(1); |
|
|
osighand = signal(SIGCHLD, SIG_DFL); |
osighand = signal(SIGCHLD, SIG_DFL); |
pid = fork(); |
pid = fork(); |
if (pid == 0) { |
if (pid == 0) { |
|
signal(SIGPIPE, SIG_DFL); |
debug3("Executing %s -c \"%s\"", shell, args); |
debug3("Executing %s -c \"%s\"", shell, args); |
execl(shell, shell, "-c", args, (char *)NULL); |
execl(shell, shell, "-c", args, (char *)NULL); |
error("Couldn't execute %s -c \"%s\": %s", |
error("Couldn't execute %s -c \"%s\": %s", |