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
CMake
CMake
Commits
e99e9bac
Commit
e99e9bac
authored
Aug 05, 2003
by
Brad King
Browse files
BUG: Added missing zero-initialization of struct sigaction.
parent
dfcd4f21
Changes
1
Show whitespace changes
Inline
Side-by-side
Source/kwsys/ProcessUNIX.c
View file @
e99e9bac
...
...
@@ -285,6 +285,7 @@ void kwsysProcess_Execute(kwsysProcess* cp)
/* We want no special handling of SIGCHLD. Repeat call until it is
not interrupted. */
memset
(
&
newSigChldAction
,
0
,
sizeof
(
struct
sigaction
));
newSigChldAction
.
sa_handler
=
SIG_DFL
;
while
((
sigaction
(
SIGCHLD
,
&
newSigChldAction
,
&
cp
->
OldSigChldAction
)
<
0
)
&&
(
errno
==
EINTR
));
...
...
@@ -901,6 +902,7 @@ static void kwsysProcessChildErrorExit(kwsysProcess* cp)
static
void
kwsysProcessRestoreDefaultSignalHandlers
()
{
struct
sigaction
act
;
memset
(
&
act
,
0
,
sizeof
(
struct
sigaction
));
act
.
sa_handler
=
SIG_DFL
;
#ifdef SIGHUP
sigaction
(
SIGHUP
,
&
act
,
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