Lines Matching refs:signal_number
1269 static SignalHandler *SetMagickSignalHandler(int signal_number, in SetMagickSignalHandler() argument
1284 sigaddset(&mask,signal_number); in SetMagickSignalHandler()
1292 status=sigaction(signal_number,&action,&previous_action); in SetMagickSignalHandler()
1298 return(signal(signal_number,handler)); in SetMagickSignalHandler()
1302 static void MagickSignalHandler(int signal_number) in MagickSignalHandler() argument
1305 (void) SetMagickSignalHandler(signal_number,signal_handlers[signal_number]); in MagickSignalHandler()
1309 if (signal_number == SIGQUIT) in MagickSignalHandler()
1313 if (signal_number == SIGABRT) in MagickSignalHandler()
1317 if (signal_number == SIGFPE) in MagickSignalHandler()
1321 if (signal_number == SIGXCPU) in MagickSignalHandler()
1325 if (signal_number == SIGXFSZ) in MagickSignalHandler()
1329 if (signal_number == SIGSEGV) in MagickSignalHandler()
1333 exit(signal_number); in MagickSignalHandler()
1336 if (signal_number == SIGHUP) in MagickSignalHandler()
1337 _exit(signal_number); in MagickSignalHandler()
1340 if (signal_number == SIGINT) in MagickSignalHandler()
1341 _exit(signal_number); in MagickSignalHandler()
1344 if (signal_number == SIGTERM) in MagickSignalHandler()
1345 _exit(signal_number); in MagickSignalHandler()
1348 if (signal_handlers[signal_number] != MagickSignalHandler) in MagickSignalHandler()
1349 raise(signal_number); in MagickSignalHandler()
1351 _exit(signal_number); /* do not invoke registered atexit() methods */ in MagickSignalHandler()
1355 static SignalHandler *RegisterMagickSignalHandler(int signal_number) in RegisterMagickSignalHandler() argument
1360 handler=SetMagickSignalHandler(signal_number,MagickSignalHandler); in RegisterMagickSignalHandler()
1364 handler=SetMagickSignalHandler(signal_number,handler); in RegisterMagickSignalHandler()
1367 "Register handler for signal: %d",signal_number); in RegisterMagickSignalHandler()