summaryrefslogtreecommitdiffstats
path: root/dund
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-02-07 11:17:31 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-02-07 11:17:31 +0000
commita388c640dd22bb07bd899cd32883bc42b16c430a (patch)
treefe328ab9c5d6801a304c5d805c82e918eb76b571 /dund
parent44461c016483dcbf2ae99ba2e5b041b4ff4cdf2e (diff)
Write error is execution of pppd fails
Diffstat (limited to 'dund')
-rw-r--r--dund/dun.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/dund/dun.c b/dund/dun.c
index 2a4a5cc6..f8bc6ee4 100644
--- a/dund/dun.c
+++ b/dund/dun.c
@@ -166,10 +166,13 @@ static int dun_exec(char *tty, char *prog, char **args)
setsid();
/* Close all FDs */
- for (fd=3; fd < 20; fd++)
+ for (fd = 3; fd < 20; fd++)
close(fd);
execvp(prog, args);
+
+ syslog(LOG_ERR, "Error while executing %s", prog);
+
exit(1);
}