Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
vlib: exit 0 (nocore) on SIGHUP
[vpp.git]
/
src
/
vlib
/
unix
/
main.c
diff --git
a/src/vlib/unix/main.c
b/src/vlib/unix/main.c
index
568876b
..
95aeecf
100644
(file)
--- a/
src/vlib/unix/main.c
+++ b/
src/vlib/unix/main.c
@@
-180,8
+180,8
@@
unix_signal_handler (int signum, siginfo_t * si, ucontext_t * uc)
/* have to remove SIGABRT to avoid recursive - os_exit calling abort() */
unsetup_signal_handlers (SIGABRT);
/* have to remove SIGABRT to avoid recursive - os_exit calling abort() */
unsetup_signal_handlers (SIGABRT);
- /* os_exit(1) causes core generation,
do not do this for SIGINT
*/
- if (signum == SIGINT)
+ /* os_exit(1) causes core generation,
skip that for SIGINT, SIGHUP
*/
+ if (signum == SIGINT
|| signum == SIGHUP
)
os_exit (0);
else
os_exit (1);
os_exit (0);
else
os_exit (1);