client: can't catch SIGKILL.
This commit is contained in:
parent
c0d47d945c
commit
fe6b1e1363
2 changed files with 1 additions and 3 deletions
|
|
@ -387,7 +387,6 @@ int main(int argc, char **argv) {
|
||||||
|
|
||||||
/* Setup signal handlers */
|
/* Setup signal handlers */
|
||||||
signal(SIGTERM, sighandl);
|
signal(SIGTERM, sighandl);
|
||||||
signal(SIGKILL, sighandl);
|
|
||||||
signal(SIGQUIT, sighandl);
|
signal(SIGQUIT, sighandl);
|
||||||
signal(SIGINT, sighandl);
|
signal(SIGINT, sighandl);
|
||||||
signal(SIGSEGV, sighandl);
|
signal(SIGSEGV, sighandl);
|
||||||
|
|
|
||||||
|
|
@ -69,14 +69,13 @@ int main(int argc, char **argv) {
|
||||||
|
|
||||||
signal(SIGINT, sighandler);
|
signal(SIGINT, sighandler);
|
||||||
signal(SIGTERM, sighandler);
|
signal(SIGTERM, sighandler);
|
||||||
signal(SIGKILL, sighandler);
|
|
||||||
signal(SIGQUIT, sighandler);
|
signal(SIGQUIT, sighandler);
|
||||||
signal(SIGSEGV, sighandler);
|
signal(SIGSEGV, sighandler);
|
||||||
|
|
||||||
rc = notify_init();
|
rc = notify_init();
|
||||||
if (rc < 0)
|
if (rc < 0)
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
|
|
||||||
rc = notify_add_watch(argv[1]);
|
rc = notify_add_watch(argv[1]);
|
||||||
if (rc < 0) {
|
if (rc < 0) {
|
||||||
fprintf(stderr, "Invalid path: %s\n", argv[1]);
|
fprintf(stderr, "Invalid path: %s\n", argv[1]);
|
||||||
|
|
|
||||||
Reference in a new issue