mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
ITS#9354 - Fix usage of signal to be portable
This commit is contained in:
parent
9187cca4b1
commit
bfeaec664f
1 changed files with 4 additions and 1 deletions
|
|
@ -21,6 +21,7 @@
|
|||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "ac/signal.h"
|
||||
#include "ac/stdlib.h"
|
||||
#include "ac/time.h"
|
||||
|
||||
|
|
@ -597,7 +598,9 @@ main( int argc, char **argv )
|
|||
}
|
||||
|
||||
tester_config_finish( config );
|
||||
signal(SIGPIPE, SIG_IGN);
|
||||
#ifdef SIGPIPE
|
||||
(void) SIGNAL(SIGPIPE, SIG_IGN);
|
||||
#endif
|
||||
|
||||
/* don't clear the screen if debug is enabled */
|
||||
if (debug)
|
||||
|
|
|
|||
Loading…
Reference in a new issue