mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-10 18:23:28 +00:00
Call _exit in my_shell to prevent calling of cleanup()
SVN revision: 2120
This commit is contained in:
parent
ac98c2022e
commit
d05ba238af
@ -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 */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user