From: Pierre-Marc Fournier Date: Wed, 17 Mar 2010 03:56:19 +0000 (-0400) Subject: tracectl: remove unused function X-Git-Tag: v0.4~6 X-Git-Url: https://git.lttng.org/?p=ust.git;a=commitdiff_plain;h=308a2bf9b2145802748c47ea41a1529486a54b21 tracectl: remove unused function --- diff --git a/libust/tracectl.c b/libust/tracectl.c index 064b72b..6c83929 100644 --- a/libust/tracectl.c +++ b/libust/tracectl.c @@ -123,28 +123,6 @@ static void print_markers(FILE *fp) static int init_socket(void); -int fd_notif = -1; -void notif_cb(void) -{ - int result; - struct trctl_msg msg; - - /* FIXME: fd_notif should probably be protected by a spinlock */ - - if(fd_notif == -1) - return; - - msg.type = MSG_NOTIF; - msg.size = sizeof(msg.type); - - /* FIXME: don't block here */ - result = write(fd_notif, &msg, msg.size+sizeof(msg.size)); - if(result == -1) { - PERROR("write"); - return; - } -} - /* Ask the daemon to collect a trace called trace_name and being * produced by this pid. *