From 78a29f0fff2c2a212be120b4dc8f3f43f5350a94 Mon Sep 17 00:00:00 2001 From: compudj Date: Thu, 9 Mar 2006 18:33:33 +0000 Subject: [PATCH] ut fast : use sigsuspend to be signal safe git-svn-id: http://ltt.polymtl.ca/svn@1630 04897980-b3bd-0310-b5e0-8ef037075253 --- usertrace-fast/Makefile | 2 +- usertrace-fast/ltt-usertrace-fast.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"); } -- 2.34.1