X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=libustcomm%2Fustcomm.c;h=8324f21decad53d79a8659657bb2d000e90c914b;hb=ce2ccc12dddef07259e349d0b10504585ce6ee20;hp=c76413861cb418cf142c75b14192d85e1216b5a5;hpb=0e4b45ace8b034dc4352a30d89b74f5e59e2e27d;p=ust.git diff --git a/libustcomm/ustcomm.c b/libustcomm/ustcomm.c index c764138..8324f21 100644 --- a/libustcomm/ustcomm.c +++ b/libustcomm/ustcomm.c @@ -37,22 +37,6 @@ #define UNIX_PATH_MAX 108 -#define MSG_MAX 10000 - -/* FIXME: ustcomm blocks on message sending, which might be problematic in - * some cases. Fix the poll() usage so sends are buffered until they don't - * block. - */ - -//static void bt(void) -//{ -// void *buffer[100]; -// int result; -// -// result = backtrace(&buffer, 100); -// backtrace_symbols_fd(buffer, result, STDERR_FILENO); -//} - static int mkdir_p(const char *path, mode_t mode) { const char *path_p; @@ -102,20 +86,6 @@ static int mkdir_p(const char *path, mode_t mode) return retval; } -char *strdup_malloc(const char *s) -{ - char *retval; - - if(s == NULL) - return NULL; - - retval = (char *) malloc(strlen(s)+1); - - strcpy(retval, s); - - return retval; -} - static int signal_process(pid_t pid) { return 0;