… | |
… | |
449 | void |
449 | void |
450 | fork_abort (const char *msg) |
450 | fork_abort (const char *msg) |
451 | { |
451 | { |
452 | if (!fork ()) |
452 | if (!fork ()) |
453 | { |
453 | { |
|
|
454 | signal (SIGINT , SIG_IGN); |
|
|
455 | signal (SIGTERM, SIG_IGN); |
454 | signal (SIGABRT, SIG_DFL); |
456 | signal (SIGABRT, SIG_IGN); |
455 | |
457 | |
456 | // try to put corefiles into a subdirectory, if existing, to allow |
458 | // try to put corefiles into a subdirectory, if existing, to allow |
457 | // an administrator to reduce the I/O load. |
459 | // an administrator to reduce the I/O load. |
458 | chdir ("cores"); |
460 | chdir ("cores"); |
459 | |
461 | |