ut fast : use sigsuspend to be signal safe
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 9 Mar 2006 18:33:33 +0000 (18:33 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 9 Mar 2006 18:33:33 +0000 (18:33 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1630 04897980-b3bd-0310-b5e0-8ef037075253

usertrace-fast/Makefile
usertrace-fast/ltt-usertrace-fast.c

index 7430a3b45589cdaf70a2415d2d766862a241a30a..d63a964802471531a5d05928be378b2af3d1cf82 100644 (file)
@@ -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
 
index 0443a10bb4c6df7ed4915d22f4cf67620863554d..1a57db154686f910b1eff7b7b553bf3c825df985 100644 (file)
@@ -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");
                }
                
This page took 0.025288 seconds and 4 git commands to generate.