Lines 1361-1369
Link Here
|
1361 |
{ |
1361 |
{ |
1362 |
info("Hangup (SIGHUP)"); |
1362 |
info("Hangup (SIGHUP)"); |
1363 |
got_sighup = 1; |
1363 |
got_sighup = 1; |
|
|
1364 |
signal(SIGHUP, SIG_IGN); |
1364 |
if (conn_running) |
1365 |
if (conn_running) |
1365 |
/* Send the signal to the [dis]connector process(es) also */ |
1366 |
/* Send the signal to the [dis]connector process(es) also */ |
1366 |
kill_my_pg(sig); |
1367 |
kill_my_pg(sig); |
|
|
1368 |
signal(SIGHUP, hup); |
1367 |
notify(sigreceived, sig); |
1369 |
notify(sigreceived, sig); |
1368 |
if (waiting) |
1370 |
if (waiting) |
1369 |
siglongjmp(sigjmp, 1); |
1371 |
siglongjmp(sigjmp, 1); |
Lines 1382-1390
Link Here
|
1382 |
{ |
1384 |
{ |
1383 |
info("Terminating on signal %d.", sig); |
1385 |
info("Terminating on signal %d.", sig); |
1384 |
got_sigterm = 1; |
1386 |
got_sigterm = 1; |
|
|
1387 |
signal(SIGTERM, SIG_IGN); |
1388 |
signal(SIGINT, SIG_IGN); |
1385 |
if (conn_running) |
1389 |
if (conn_running) |
1386 |
/* Send the signal to the [dis]connector process(es) also */ |
1390 |
/* Send the signal to the [dis]connector process(es) also */ |
1387 |
kill_my_pg(sig); |
1391 |
kill_my_pg(sig); |
|
|
1392 |
signal(SIGTERM, term); |
1393 |
signal(SIGINT, term); |
1388 |
notify(sigreceived, sig); |
1394 |
notify(sigreceived, sig); |
1389 |
if (waiting) |
1395 |
if (waiting) |
1390 |
siglongjmp(sigjmp, 1); |
1396 |
siglongjmp(sigjmp, 1); |