kopia lustrzana https://gitlab.com/sane-project/backends
saned: catch SIGINT,SIGTERM in foreground listener
These signals were only being caught when daemonised but should also be handled with the non-daemonised standalone server otherwise child processes like the Avahi service can remain after the main process is terminated.734-support-for-canon-i-sensys-mf657cdw-mf650c-series
rodzic
4dcab5befb
commit
65442082a8
|
@ -3264,10 +3264,10 @@ run_standalone (char *user)
|
||||||
close (fd);
|
close (fd);
|
||||||
|
|
||||||
setsid ();
|
setsid ();
|
||||||
|
}
|
||||||
|
|
||||||
signal(SIGINT, sig_int_term_handler);
|
signal(SIGINT, sig_int_term_handler);
|
||||||
signal(SIGTERM, sig_int_term_handler);
|
signal(SIGTERM, sig_int_term_handler);
|
||||||
}
|
|
||||||
|
|
||||||
if (user)
|
if (user)
|
||||||
runas_user(user);
|
runas_user(user);
|
||||||
|
|
Ładowanie…
Reference in New Issue