Home
last modified time | relevance | path

Searched refs:sd_event_add_signal (Results 1 – 25 of 30) sorted by relevance

12

/systemd-251/src/userdb/
Duserdbd-manager.c99 r = sd_event_add_signal(m->event, NULL, SIGINT, NULL, NULL); in manager_new()
103 r = sd_event_add_signal(m->event, NULL, SIGTERM, NULL, NULL); in manager_new()
115 r = sd_event_add_signal(m->event, &m->sigusr2_event_source, SIGUSR2, on_sigusr2, m); in manager_new()
119 r = sd_event_add_signal(m->event, &m->sigchld_event_source, SIGCHLD, on_sigchld, m); in manager_new()
/systemd-251/src/import/
Dexport.c107 (void) sd_event_add_signal(event, NULL, SIGTERM, interrupt_signal_handler, NULL); in export_tar()
108 (void) sd_event_add_signal(event, NULL, SIGINT, interrupt_signal_handler, NULL); in export_tar()
183 (void) sd_event_add_signal(event, NULL, SIGTERM, interrupt_signal_handler, NULL); in export_raw()
184 (void) sd_event_add_signal(event, NULL, SIGINT, interrupt_signal_handler, NULL); in export_raw()
Dimport-common.c309 (void) sd_event_add_signal(event, NULL, SIGTERM, interrupt_signal_handler, NULL); in import_allocate_event_with_signals()
310 (void) sd_event_add_signal(event, NULL, SIGINT, interrupt_signal_handler, NULL); in import_allocate_event_with_signals()
/systemd-251/src/portable/
Dportabled.c38 r = sd_event_add_signal(m->event, NULL, SIGINT, NULL, NULL); in manager_new()
42 r = sd_event_add_signal(m->event, NULL, SIGTERM, NULL, NULL); in manager_new()
/systemd-251/src/timesync/
Dwait-sync.c193 r = sd_event_add_signal(event, NULL, SIGTERM, NULL, NULL); in run()
197 r = sd_event_add_signal(event, NULL, SIGINT, NULL, NULL); in run()
Dtimesyncd-manager.c1137 (void) sd_event_add_signal(m->event, NULL, SIGTERM, NULL, NULL); in manager_new()
1138 (void) sd_event_add_signal(m->event, NULL, SIGINT, NULL, NULL); in manager_new()
/systemd-251/src/udev/
Dudevadm-monitor.c217 (void) sd_event_add_signal(event, NULL, SIGTERM, NULL, NULL); in monitor_main()
218 (void) sd_event_add_signal(event, NULL, SIGINT, NULL, NULL); in monitor_main()
Dudevd.c687 r = sd_event_add_signal(manager->event, NULL, SIGTERM, NULL, NULL); in worker_main()
2005 r = sd_event_add_signal(manager->event, NULL, SIGINT, on_sigterm, manager); in main_loop()
2009 r = sd_event_add_signal(manager->event, NULL, SIGTERM, on_sigterm, manager); in main_loop()
2013 r = sd_event_add_signal(manager->event, NULL, SIGHUP, on_sighup, manager); in main_loop()
/systemd-251/src/libsystemd/sd-event/
Dtest-event.c147 …assert_se(sd_event_add_signal(sd_event_source_get_event(s), &p, SIGUSR1, signal_handler, INT_TO_PT… in defer_handler()
258 assert_se(sd_event_add_signal(e, NULL, SIGRTMIN+1, NULL, NULL) >= 0); in test_basic_one()
350 assert_se(sd_event_add_signal(e, &u, SIGRTMIN+2, rtqueue_handler, NULL) >= 0); in TEST()
351 assert_se(sd_event_add_signal(e, &v, SIGRTMIN+3, rtqueue_handler, NULL) >= 0); in TEST()
352 assert_se(sd_event_add_signal(e, &s, SIGUSR2, rtqueue_handler, NULL) >= 0); in TEST()
/systemd-251/src/machine/
Dmachined.c56 r = sd_event_add_signal(m->event, NULL, SIGINT, NULL, NULL); in manager_new()
60 r = sd_event_add_signal(m->event, NULL, SIGTERM, NULL, NULL); in manager_new()
Dmachinectl.c1221 (void) sd_event_add_signal(event, NULL, SIGINT, NULL, NULL); in process_forward()
1222 (void) sd_event_add_signal(event, NULL, SIGTERM, NULL, NULL); in process_forward()
1829 (void) sd_event_add_signal(event, NULL, SIGINT, transfer_signal_handler, UINT32_TO_PTR(id)); in transfer_image_common()
1830 … (void) sd_event_add_signal(event, NULL, SIGTERM, transfer_signal_handler, UINT32_TO_PTR(id)); in transfer_image_common()
/systemd-251/src/network/wait-online/
Dmanager.c379 (void) sd_event_add_signal(m->event, NULL, SIGTERM, NULL, NULL); in manager_new()
380 (void) sd_event_add_signal(m->event, NULL, SIGINT, NULL, NULL); in manager_new()
/systemd-251/src/login/
Dlogind.c79 r = sd_event_add_signal(m->event, NULL, SIGINT, NULL, NULL); in manager_new()
83 r = sd_event_add_signal(m->event, NULL, SIGTERM, NULL, NULL); in manager_new()
791 r = sd_event_add_signal(m->event, NULL, SIGRTMIN, manager_vt_switch, m); in manager_connect_console()
1035 r = sd_event_add_signal(m->event, NULL, SIGHUP, manager_dispatch_reload_signal, m); in manager_startup()
/systemd-251/src/resolve/
Dresolved-manager.c607 (void) sd_event_add_signal(m->event, NULL, SIGTERM, NULL, NULL); in manager_new()
608 (void) sd_event_add_signal(m->event, NULL, SIGINT, NULL, NULL); in manager_new()
640 (void) sd_event_add_signal(m->event, &m->sigusr1_event_source, SIGUSR1, manager_sigusr1, m); in manager_new()
641 (void) sd_event_add_signal(m->event, &m->sigusr2_event_source, SIGUSR2, manager_sigusr2, m); in manager_new()
642 …(void) sd_event_add_signal(m->event, &m->sigrtmin1_event_source, SIGRTMIN+1, manager_sigrtmin1, m); in manager_new()
/systemd-251/src/network/
Dnetworkd-manager.c457 (void) sd_event_add_signal(m->event, NULL, SIGTERM, signal_terminate_callback, m); in manager_setup()
458 (void) sd_event_add_signal(m->event, NULL, SIGINT, signal_terminate_callback, m); in manager_setup()
459 (void) sd_event_add_signal(m->event, NULL, SIGUSR2, signal_restart_callback, m); in manager_setup()
/systemd-251/src/journal-remote/
Djournal-upload.c407 r = sd_event_add_signal(u->events, &u->sigterm_event, SIGTERM, dispatch_sigterm, u); in setup_signals()
411 r = sd_event_add_signal(u->events, &u->sigint_event, SIGINT, dispatch_sigterm, u); in setup_signals()
Djournal-remote-main.c571 r = sd_event_add_signal(s->events, &s->sigterm_event, SIGTERM, NULL, s); in setup_signals()
575 r = sd_event_add_signal(s->events, &s->sigint_event, SIGINT, NULL, s); in setup_signals()
/systemd-251/src/systemd/
Dsd-event.h92 int sd_event_add_signal(sd_event *e, sd_event_source **s, int sig, sd_event_signal_handler_t callba…
/systemd-251/src/locale/
Dlocaled.c862 r = sd_event_add_signal(event, NULL, SIGINT, NULL, NULL); in run()
866 r = sd_event_add_signal(event, NULL, SIGTERM, NULL, NULL); in run()
/systemd-251/src/oom/
Doomd-manager.c649 r = sd_event_add_signal(m->event, NULL, SIGINT, NULL, NULL); in manager_new()
653 r = sd_event_add_signal(m->event, NULL, SIGTERM, NULL, NULL); in manager_new()
/systemd-251/src/journal/
Djournald-server.c1592 r = sd_event_add_signal(s->event, &s->sigusr1_event_source, SIGUSR1, dispatch_sigusr1, s); in setup_signals()
1596 r = sd_event_add_signal(s->event, &s->sigusr2_event_source, SIGUSR2, dispatch_sigusr2, s); in setup_signals()
1600 r = sd_event_add_signal(s->event, &s->sigterm_event_source, SIGTERM, dispatch_sigterm, s); in setup_signals()
1611 r = sd_event_add_signal(s->event, &s->sigint_event_source, SIGINT, dispatch_sigterm, s); in setup_signals()
1622 … r = sd_event_add_signal(s->event, &s->sigrtmin1_event_source, SIGRTMIN+1, dispatch_sigrtmin1, s); in setup_signals()
/systemd-251/src/timedate/
Dtimedated.c1146 r = sd_event_add_signal(event, NULL, SIGINT, NULL, NULL); in run()
1150 r = sd_event_add_signal(event, NULL, SIGTERM, NULL, NULL); in run()
/systemd-251/src/libsystemd/
Dlibsystemd.sym418 sd_event_add_signal;
/systemd-251/src/hostname/
Dhostnamed.c1411 r = sd_event_add_signal(event, NULL, SIGINT, NULL, NULL); in run()
1415 r = sd_event_add_signal(event, NULL, SIGTERM, NULL, NULL); in run()
/systemd-251/src/run/
Drun.c1263 (void) sd_event_add_signal(c.event, NULL, SIGINT, NULL, NULL); in start_transient_service()
1264 (void) sd_event_add_signal(c.event, NULL, SIGTERM, NULL, NULL); in start_transient_service()

12