X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=libustcomm%2Fustcomm.c;h=2bd86eb728442c2713f74cd24a30766706d731c8;hb=55c5b393e9b197033ed1a6a8cc8f179412c61bf6;hp=2e490b56b7f3b9bde99a3db8ade8b66f99f090da;hpb=68ab7a5d576faa16e0da19d0f824785eac215ae9;p=ust.git diff --git a/libustcomm/ustcomm.c b/libustcomm/ustcomm.c index 2e490b5..2bd86eb 100644 --- a/libustcomm/ustcomm.c +++ b/libustcomm/ustcomm.c @@ -31,7 +31,7 @@ #include #include "ustcomm.h" -#include "localerr.h" +#include "usterr.h" #define UNIX_PATH_MAX 108 @@ -67,29 +67,18 @@ char *strdup_malloc(const char *s) static int signal_process(pid_t pid) { - int result; - - result = kill(pid, UST_SIGNAL); - if(result == -1) { - PERROR("kill"); - return -1; - } - - /* FIXME: should wait in a better way */ - //sleep(1); - return 0; } int pid_is_online(pid_t pid) { - return kill(pid, UST_SIGNAL) != -1; + return 1; } static int send_message_fd(int fd, const char *msg) { int result; - result = send(fd, msg, strlen(msg), 0); + result = send(fd, msg, strlen(msg), MSG_NOSIGNAL); if(result == -1) { PERROR("send"); return -1;