projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleanup libustcmd patch
[lttng-ust.git]
/
libustcomm
/
ustcomm.c
diff --git
a/libustcomm/ustcomm.c
b/libustcomm/ustcomm.c
index 225d1990be042a18cf0cde7c297e92c61b48c386..f3263582cd0f7a6b33497aec1b7befbebd74ea07 100644
(file)
--- a/
libustcomm/ustcomm.c
+++ b/
libustcomm/ustcomm.c
@@
-33,8
+33,6
@@
#include "localerr.h"
#define UNIX_PATH_MAX 108
#include "localerr.h"
#define UNIX_PATH_MAX 108
-#define SOCK_DIR "/tmp/socks"
-#define UST_SIGNAL SIGIO
#define MSG_MAX 1000
#define MSG_MAX 1000
@@
-82,6
+80,10
@@
static int signal_process(pid_t pid)
return 0;
}
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;
static int send_message_fd(int fd, const char *msg)
{
int result;
@@
-272,7
+274,8
@@
int ustcomm_recv_message(struct ustcomm_server *server, char **msg, struct ustco
idx++;
}
idx++;
}
- result = poll(fds, n_fds, timeout);
+ while((result = poll(fds, n_fds, timeout)) == -1 && errno == EINTR)
+ /* nothing */;
if(result == -1) {
PERROR("poll");
return -1;
if(result == -1) {
PERROR("poll");
return -1;
This page took
0.024253 seconds
and
4
git commands to generate.