Home
last modified time | relevance | path

Searched refs:SIGTERM (Results 1 – 25 of 240) sorted by relevance

12345678910

/illumos-gate/usr/src/cmd/lp/cmd/lpsched/
H A Dterminate.c60 if (kill(-ep->pid, SIGTERM) == -1 && errno == ESRCH) { in terminate()
62 ep->status = SIGTERM; in terminate()
83 ep->status = SIGTERM; in terminate()
97 ep->status = SIGTERM; in terminate()
109 ep->status = SIGTERM; in terminate()
/illumos-gate/usr/src/cmd/lp/model/
H A Dlp.cat.c438 signal(SIGTERM, sigterm); in main()
462 signal(SIGTERM, SIG_IGN); in main()
472 signal(SIGTERM, SIG_IGN); in main()
500 signal(SIGTERM, SIG_IGN); in main()
520 signal(SIGTERM, SIG_IGN); in main()
527 signal(SIGTERM, SIG_IGN); in main()
615 signal(SIGTERM, SIG_IGN); in sighup()
627 signal(SIGTERM, SIG_IGN); in sigint()
639 signal(SIGTERM, SIG_IGN); in sigpipe()
651 signal(SIGTERM, SIG_IGN); in sigalrm()
[all …]
/illumos-gate/usr/src/cmd/lp/cmd/lpadmin/
H A Dsignals.c52 (void)signal (SIGTERM, SIG_IGN); in catch()
73 SETSIG (SIGTERM); in trap_signals()
80 signal (SIGTERM, old_sigterm); in trap_signals()
107 old_sigterm = signal(SIGTERM, SIG_IGN); in ignore_signals()
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dsignal.c215 case SIGTERM:
278 mask |= sigmask(SIGTERM);
293 (void) sigset(SIGTERM, SIG_HOLD);
302 (void) sigset(SIGTERM, SIG_DFL);
313 (void) sigaddset(&sset, SIGTERM);
/illumos-gate/usr/src/cmd/sendmail/libmilter/
H A Dsignal.c98 (void) sigaddset(&set, SIGTERM);
135 case SIGTERM:
171 (void) sigaddset(&set, SIGTERM);
/illumos-gate/usr/src/cmd/ttymon/
H A Dtmsig.c53 (void) sigdelset(&cset, SIGTERM); in catch_signals()
64 (void) sigaddset(&sigact.sa_mask, SIGTERM); in catch_signals()
65 (void) sigaction(SIGTERM, &sigact, NULL); in catch_signals()
/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/
H A Dscript_handler.c62 static int script_signal = SIGTERM;
327 (void) sigset(SIGTERM, sigterm_handler); in script_start()
387 (void) kill(dsmp->dsm_script_pid, SIGTERM); in script_stop()
388 (void) kill(dsmp->dsm_script_helper_pid, SIGTERM); in script_stop()
/illumos-gate/usr/src/cmd/tip/
H A Dtipout.c105 (void) signal(SIGTERM, (sig_handler_t)intTERM); in tipout()
117 (void) sigaddset(&bmask, SIGTERM); in tipout()
121 (void) sigaddset(&tmask, SIGTERM); in tipout()
/illumos-gate/usr/src/cmd/oplhpd/
H A Doplhpd.c90 (void) set_sig_handler(SIGTERM, SIG_IGN); in quit_daemon()
92 (void) kill(-pgid, SIGTERM); in quit_daemon()
197 (void) set_sig_handler(SIGTERM, (SigHandler *)quit_daemon); in init_daemon()
/illumos-gate/usr/src/cmd/acpihpd/
H A Dacpihpd.c190 if (set_sig_handler(SIGTERM, (sig_handler_t *)daemon_quit) != 0) { in daemon_init()
222 (void) set_sig_handler(SIGTERM, SIG_IGN); in daemon_quit()
224 (void) kill(-pgid, SIGTERM); in daemon_quit()
/illumos-gate/usr/src/cmd/fs.d/nfs/nfsmapid/
H A Dnfsmapid.c123 (void) sigaddset(&sigset, SIGTERM); in sig_handler()
149 case SIGTERM: in sig_handler()
176 (void) sigaddset(&sigset, SIGTERM); in thr_init()
/illumos-gate/usr/src/cmd/bhyve/amd64/
H A Dpm.c393 power_button = mevent_add(SIGTERM, EVF_SIGNAL, in smi_cmd_handler()
395 old_power_handler = signal(SIGTERM, SIG_IGN); in smi_cmd_handler()
405 signal(SIGTERM, old_power_handler); in smi_cmd_handler()
439 (void) sigaction(SIGTERM, &act, NULL); in sci_init()
/illumos-gate/usr/src/cmd/lp/cmd/
H A Dlpshut.c166 if(signal(SIGTERM, SIG_IGN) != SIG_IGN) in startup()
167 signal(SIGTERM, catch); in startup()
/illumos-gate/usr/src/cmd/unpack/
H A Dunpack.c264 if (signal(SIGTERM, SIG_IGN) != SIG_IGN) in main()
266 (void) signal((int)SIGTERM, onsig); in main()
268 (void) signal(SIGTERM, onsig); in main()
612 if (sig == SIGTERM || sig == SIGHUP || sig == SIGINT) in onsig()
/illumos-gate/usr/src/cmd/ypcmd/
H A Dyp_b_svc.c625 sighold(SIGTERM); in unregister()
626 kill(-getpid(), SIGTERM); /* kill process group (i.e., children) */ in unregister()
627 sigrelse(SIGTERM); in unregister()
639 for (i = 1; i <= SIGTERM; i++) { in set_signal_handlers()
/illumos-gate/usr/src/cmd/auditd/
H A Dauditd.c235 (void) sigaddset(&set, SIGTERM); in main()
237 while (signal_caught != SIGTERM) in main()
326 (void) kill(pid, SIGTERM); in main()
738 (void) sigaddset(&set, SIGTERM); in signal_thread()
749 case SIGTERM: in signal_thread()
/illumos-gate/usr/src/cmd/sulogin/
H A Dsulogin.c308 (void) sigaction(SIGTERM, &sa, NULL); in main()
444 (void) sigaction(SIGTERM, &sa, NULL); in setupsigs()
757 (void) sigsend(P_PID, pidlist[i], SIGTERM); in parenthandler()
764 (void) sigaction(SIGTERM, &sa, NULL); in parenthandler()
811 (void) sigaction(SIGTERM, &sa, NULL); in termhandler()
/illumos-gate/usr/src/cmd/sgs/error/common/
H A Derrormain.c191 if (signal(SIGTERM, onintr) == SIG_IGN) in main()
192 (void) signal(SIGTERM, SIG_IGN); in main()
/illumos-gate/usr/src/cmd/hotplugd/
H A Dhotplugd.c293 (void) sigaction(SIGTERM, &act, NULL); in init_signals()
298 (void) sigdelset(&set, SIGTERM); in init_signals()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/features/
H A Dsignal.c205 #ifdef SIGTERM
207 "Terminated", "TERM", SIGTERM,
/illumos-gate/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_main.c261 (void) sigaction(SIGTERM, &act, NULL); in main()
266 (void) sigdelset(&set, SIGTERM); in main()
/illumos-gate/usr/src/cmd/iscsid/
H A Discsid.c243 (void) sigaddset(&sigs, SIGTERM); in main()
251 (void) sigaction(SIGTERM, &act, NULL); in main()
263 case SIGTERM: in main()
/illumos-gate/usr/src/cmd/killall/
H A Dkillall.c52 sig = SIGTERM; in main()
/illumos-gate/usr/src/contrib/mDNSResponder/mDNSPosix/
H A DPosixDaemon.c160 mDNSPosixListenForSignalInEventLoop(SIGTERM); in MainLoop()
195 if (sigismember(&signals, SIGINT) || sigismember(&signals, SIGTERM)) break; in MainLoop()
/illumos-gate/usr/src/cmd/cmd-inet/lib/nwamd/
H A Dmain.c161 case SIGTERM: in sighandler()
208 (void) sigaddset(&sigwaitset, SIGTERM); in block_signals()

12345678910