summaryrefslogtreecommitdiff
path: root/comsat/action.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2001-11-13 13:52:29 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2001-11-13 13:52:29 +0000
commit9bcb4c72fbd5d9da96da87feaf705d4ed6f8f33f (patch)
treeef9b54ba961abe7fded474a8e71df99cb7b8dafd /comsat/action.c
parent775c2f0ceddd4cdd37867a635ff49681b771df6c (diff)
downloadmailutils-9bcb4c72fbd5d9da96da87feaf705d4ed6f8f33f.tar.gz
mailutils-9bcb4c72fbd5d9da96da87feaf705d4ed6f8f33f.tar.bz2
Exit if execv fails (forgotten to commit)
Diffstat (limited to 'comsat/action.c')
-rw-r--r--comsat/action.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/comsat/action.c b/comsat/action.c
index b534ab903..bb5bcd34c 100644
--- a/comsat/action.c
+++ b/comsat/action.c
@@ -315,6 +315,7 @@ action_exec (FILE *tty, int line, int argc, char **argv)
fclose (tty);
execv (argv[0], argv);
syslog (LOG_ERR, "can't execute %s: %s", argv[0], strerror (errno));
+ exit (0);
}
}

Return to:

Send suggestions and report system problems to the System administrator.