From: Timur I. Bakeyev Date: Sun, 7 Jun 2009 13:58:38 +0000 (+0000) Subject: Set SIGRTMIN to NSIG X-Git-Tag: tdb-1.1.5~192 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab88f9017c977af3bb669a638f77552defff3fbf;p=thirdparty%2Fsamba.git Set SIGRTMIN to NSIG In the includes we define SIGRTMIN to 32 if it's not defined already. This value could be fairly low and it's better to use NSIG(number of defined signals) as the lower mark for the available signals. We have similar defenition in the source3/smbd/aio.c, which can be safely removed, as it comes from includes.h then. With regards, Timur Bakeyev. Signed-off-by: Stefan Metzmacher --- diff --git a/source3/include/includes.h b/source3/include/includes.h index 3ce63bb7a15..b7ba70325c2 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -795,7 +795,7 @@ enum flush_reason_enum { #endif #ifndef SIGRTMIN -#define SIGRTMIN 32 +#define SIGRTMIN NSIG #endif #ifndef MAP_FILE diff --git a/source3/smbd/aio.c b/source3/smbd/aio.c index a5eea0a32e7..c6f700f17a0 100644 --- a/source3/smbd/aio.c +++ b/source3/smbd/aio.c @@ -25,9 +25,6 @@ /* The signal we'll use to signify aio done. */ #ifndef RT_SIGNAL_AIO -#ifndef SIGRTMIN -#define SIGRTMIN NSIG -#endif #define RT_SIGNAL_AIO (SIGRTMIN+3) #endif