Lines Matching refs:signal
31 void SIGCHLDHandler(int signal) { in SIGCHLDHandler() argument
38 void GracefulShutdownHandler(int signal) { in GracefulShutdownHandler() argument
43 RAW_CHECK(sigaction(signal, &action, NULL) == 0); in GracefulShutdownHandler()
51 reinterpret_cast<const char*>(&signal) + bytes_written, in GracefulShutdownHandler()
52 sizeof(signal) - bytes_written)); in GracefulShutdownHandler()
55 } while (bytes_written < sizeof(signal)); in GracefulShutdownHandler()
59 void SIGHUPHandler(int signal) { in SIGHUPHandler() argument
60 RAW_CHECK(signal == SIGHUP); in SIGHUPHandler()
61 GracefulShutdownHandler(signal); in SIGHUPHandler()
65 void SIGINTHandler(int signal) { in SIGINTHandler() argument
66 RAW_CHECK(signal == SIGINT); in SIGINTHandler()
67 GracefulShutdownHandler(signal); in SIGINTHandler()
71 void SIGTERMHandler(int signal) { in SIGTERMHandler() argument
72 RAW_CHECK(signal == SIGTERM); in SIGTERMHandler()
73 GracefulShutdownHandler(signal); in SIGTERMHandler()
117 int signal; in ThreadMain() local
123 reinterpret_cast<char*>(&signal) + bytes_read, in ThreadMain()
124 sizeof(signal) - bytes_read)); in ThreadMain()
135 } while (bytes_read < sizeof(signal)); in ThreadMain()
137 VLOG(1) << "Handling shutdown for signal " << signal << "."; in ThreadMain()
146 kill(getpid(), signal); in ThreadMain()
159 _exit(signal | (1 << 7)); in ThreadMain()