From d05ba238affce3e3bf9149d2cc3250143a484431 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Wed, 6 Aug 2008 10:37:51 +0000 Subject: [PATCH] Call _exit in my_shell to prevent calling of cleanup() SVN revision: 2120 --- src/elogd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/elogd.c b/src/elogd.c index 76379b51..8ef24045 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -1191,7 +1191,7 @@ int my_shell(char *cmd, char *result, int size) } system(str); - exit(0); + _exit(0); } return 1; @@ -27287,7 +27287,7 @@ void server_loop(void) if (stat(pidfile, &finfo) >= 0) { /* never overwrite a file */ eprintf("Refuse to overwrite existing file \"%s\".\n", pidfile); - exit(EXIT_FAILURE); + _exit(EXIT_FAILURE); /* don't call atexit() hook */ } }