##// END OF EJS Templates
chg: ignore SIGINT while waiting pager termination...
Yuya Nishihara -
r29370:3ddf4d0c default
parent child Browse files
Show More
@@ -434,8 +434,6 b' static void restoresignalhandler()'
434
434
435 if (sigaction(SIGHUP, &sa, NULL) < 0)
435 if (sigaction(SIGHUP, &sa, NULL) < 0)
436 goto error;
436 goto error;
437 if (sigaction(SIGINT, &sa, NULL) < 0)
438 goto error;
439 if (sigaction(SIGTERM, &sa, NULL) < 0)
437 if (sigaction(SIGTERM, &sa, NULL) < 0)
440 goto error;
438 goto error;
441 if (sigaction(SIGWINCH, &sa, NULL) < 0)
439 if (sigaction(SIGWINCH, &sa, NULL) < 0)
@@ -445,6 +443,11 b' static void restoresignalhandler()'
445 if (sigaction(SIGTSTP, &sa, NULL) < 0)
443 if (sigaction(SIGTSTP, &sa, NULL) < 0)
446 goto error;
444 goto error;
447
445
446 /* ignore Ctrl+C while shutting down to make pager exits cleanly */
447 sa.sa_handler = SIG_IGN;
448 if (sigaction(SIGINT, &sa, NULL) < 0)
449 goto error;
450
448 peerpid = 0;
451 peerpid = 0;
449 return;
452 return;
450
453
General Comments 0
You need to be logged in to leave comments. Login now