add libustcmd
[ust.git] / libustcomm / ustcomm.c
index 0a5ab6aaaf1110d8e66a44b123f81f4d9829c878..f3263582cd0f7a6b33497aec1b7befbebd74ea07 100644 (file)
@@ -33,8 +33,6 @@
 #include "localerr.h"
 
 #define UNIX_PATH_MAX 108
-#define SOCK_DIR "/tmp/socks"
-#define UST_SIGNAL SIGIO
 
 #define MSG_MAX 1000
 
@@ -82,6 +80,10 @@ static int signal_process(pid_t pid)
        return 0;
 }
 
+int pid_is_online(pid_t pid) {
+       return kill(pid, UST_SIGNAL) != -1;
+}
+
 static int send_message_fd(int fd, const char *msg)
 {
        int result;
This page took 0.023495 seconds and 4 git commands to generate.