This is the signal handler for children process. It is currently useful * in order to track the SIGUSR1, that we send to a child in order to terminate * it in a clean way, without the parent detecting an error and stop * accepting writes because of a write error condition. */
| 5822 | * it in a clean way, without the parent detecting an error and stop |
| 5823 | * accepting writes because of a write error condition. */ |
| 5824 | static void sigKillChildHandler(int sig) { |
| 5825 | UNUSED(sig); |
| 5826 | int level = server.in_fork_child == CHILD_TYPE_MODULE? LL_VERBOSE: LL_WARNING; |
| 5827 | serverLogFromHandler(level, "Received SIGUSR1 in child, exiting now."); |
| 5828 | exitFromChild(SERVER_CHILD_NOERROR_RETVAL); |
| 5829 | } |
| 5830 | |
| 5831 | void setupChildSignalHandlers(void) { |
| 5832 | struct sigaction act; |
nothing calls this directly
no test coverage detected