Call _exit in my_shell to prevent calling of cleanup()

SVN revision: 2120
This commit is contained in:
Stefan Ritt 2008-08-06 10:37:51 +00:00
parent ac98c2022e
commit d05ba238af

View File

@ -1191,7 +1191,7 @@ int my_shell(char *cmd, char *result, int size)
} }
system(str); system(str);
exit(0); _exit(0);
} }
return 1; return 1;
@ -27287,7 +27287,7 @@ void server_loop(void)
if (stat(pidfile, &finfo) >= 0) { if (stat(pidfile, &finfo) >= 0) {
/* never overwrite a file */ /* never overwrite a file */
eprintf("Refuse to overwrite existing file \"%s\".\n", pidfile); eprintf("Refuse to overwrite existing file \"%s\".\n", pidfile);
exit(EXIT_FAILURE); _exit(EXIT_FAILURE); /* don't call atexit() hook */
} }
} }