Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
367e36d0
Commit
367e36d0
authored
Oct 26, 2002
by
Per Cederqvist
Browse files
(main): Call link_ansi(). Only set SA_RESTART if it is available.
parent
0ff0e53a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server/testsuite/test-select.c
View file @
367e36d0
...
...
@@ -66,6 +66,7 @@
# include <strings.h>
/* Needed on AIX 4.2 due to bzero */
#endif
#include "linkansi.h"
#include "unused.h"
sig_atomic_t
ctr
=
0
;
...
...
@@ -90,6 +91,8 @@ main(void)
time_t
after
;
pid_t
pid
;
link_ansi
();
if
((
pid
=
fork
())
<
0
)
{
perror
(
"fork"
);
...
...
@@ -106,7 +109,11 @@ main(void)
#ifdef HAVE_STRUCT_SIGACTION
sigemptyset
(
&
act
.
sa_mask
);
#ifdef SA_RESTART
act
.
sa_flags
=
SA_RESTART
;
#else
act
.
sa_flags
=
0
;
#endif
act
.
sa_handler
=
my_sighandler
;
if
(
sigaction
(
SIGHUP
,
&
act
,
NULL
)
<
0
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment