X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=ustd%2Fustd.c;h=4db550222407ba7d0773aa8b15e1b33cda777de2;hb=2a79ceebcba229c91c93272705444c61c458bb06;hp=f3285f58ba534d8c82c7f80677f5eba5f32de85d;hpb=d6322067aa791234d0d81e1a6b03b445635d5f65;p=ust.git diff --git a/ustd/ustd.c b/ustd/ustd.c index f3285f5..4db5502 100644 --- a/ustd/ustd.c +++ b/ustd/ustd.c @@ -674,6 +674,11 @@ int start_ustd(int fd) PERROR("sigaction"); return 1; } + result = sigaction(SIGINT, &sa, NULL); + if(result == -1) { + PERROR("sigaction"); + return 1; + } result = ustcomm_init_ustd(&ustd, sock_path); if(result == -1) { @@ -756,6 +761,9 @@ int start_ustd(int fd) free_bufname: free(bufname); } + else { + WARN("unknown command: %s", recvbuf); + } free(recvbuf); } @@ -772,6 +780,8 @@ int start_ustd(int fd) } } + ustcomm_fini_ustd(&ustd); + return 0; }