diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2006-02-07 11:17:31 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2006-02-07 11:17:31 +0000 |
commit | a388c640dd22bb07bd899cd32883bc42b16c430a (patch) | |
tree | fe328ab9c5d6801a304c5d805c82e918eb76b571 /dund | |
parent | 44461c016483dcbf2ae99ba2e5b041b4ff4cdf2e (diff) |
Write error is execution of pppd fails
Diffstat (limited to 'dund')
-rw-r--r-- | dund/dun.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); } |