aboutsummaryrefslogtreecommitdiff
path: root/src/sentinel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sentinel.c')
-rw-r--r--src/sentinel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sentinel.c b/src/sentinel.c
index 1d44763..59b89cc 100644
--- a/src/sentinel.c
+++ b/src/sentinel.c
@@ -140,24 +140,26 @@ start_command(int p[])
xpipe(errpipe);
xpipe(outpipe);
pid = fork();
if (pid == -1) {
system_error(errno, "pipe");
return -1;
}
if (pid == 0) {
char *argv[] = { SHELL, "-c", NULL, NULL };
int i;
+ runas();
+
close(0);
close(1);
close(2);
open("/dev/null", O_RDWR);
dup(outpipe[1]);
dup(errpipe[1]);
i = max(max(outpipe[0],outpipe[1]),
max(errpipe[0],errpipe[1]));
while (--i > 2)
close(i);

Return to:

Send suggestions and report system problems to the System administrator.