Remove async unsafe functions from signal handlers
authorFilippos Giannakos <philipgian@grnet.gr>
Mon, 8 Apr 2013 15:37:23 +0000 (18:37 +0300)
committerFilippos Giannakos <philipgian@grnet.gr>
Mon, 8 Apr 2013 15:37:23 +0000 (18:37 +0300)
xseg/peers/user/peer.c

index defa168..7498dcd 100644 (file)
@@ -134,7 +134,7 @@ static inline int isTerminate()
 
 void signal_handler(int signal)
 {
-       XSEGLOG2(&lc, I, "Caught signal. Terminating gracefully");
+//     XSEGLOG2(&lc, I, "Caught signal. Terminating gracefully");
        terminated = 1;
 #ifdef MT
        wake_up_next_thread(global_peer);
@@ -143,7 +143,7 @@ void signal_handler(int signal)
 
 void renew_logfile(int signal)
 {
-       XSEGLOG2(&lc, I, "Caught signal. Renewing logfile");
+//     XSEGLOG2(&lc, I, "Caught signal. Renewing logfile");
        renew_logctx(&lc, NULL, verbose, NULL, REOPEN_FILE);
 }