From: compudj Date: Thu, 9 Mar 2006 18:33:33 +0000 (+0000) Subject: ut fast : use sigsuspend to be signal safe X-Git-Tag: v0.12.20~1859 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=78a29f0fff2c2a212be120b4dc8f3f43f5350a94;p=lttv.git ut fast : use sigsuspend to be signal safe git-svn-id: http://ltt.polymtl.ca/svn@1630 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/usertrace-fast/Makefile b/usertrace-fast/Makefile index 7430a3b4..d63a9648 100644 --- a/usertrace-fast/Makefile +++ b/usertrace-fast/Makefile @@ -7,7 +7,7 @@ RANLIB=ranlib CC=gcc CFLAGS=-I. -O3 #CFLAGS+=-DLTT_SUBBUF_SIZE_CPU=134217728 -CFLAGS+=-DLTT_NULL_OUTPUT_TEST +#CFLAGS+=-DLTT_NULL_OUTPUT_TEST all: test sample-instrument-fct libltt-instrument-functions.a libltt-instrument-functions.so.0 sample-loop diff --git a/usertrace-fast/ltt-usertrace-fast.c b/usertrace-fast/ltt-usertrace-fast.c index 0443a10b..1a57db15 100644 --- a/usertrace-fast/ltt-usertrace-fast.c +++ b/usertrace-fast/ltt-usertrace-fast.c @@ -440,7 +440,7 @@ static void ltt_usertrace_fast_daemon(struct ltt_trace_info *shared_trace_info, while(1) { ret = sigsuspend(&oldset); - if(ret) { + if(ret != -1) { perror("LTT Error in sigsuspend\n"); }