From 308a2bf9b2145802748c47ea41a1529486a54b21 Mon Sep 17 00:00:00 2001 From: Pierre-Marc Fournier Date: Tue, 16 Mar 2010 23:56:19 -0400 Subject: [PATCH] tracectl: remove unused function --- libust/tracectl.c | 22 ---------------------- 1 file changed, 22 deletions(-) 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. * -- 2.34.1