Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
22ae4ff6
Commit
22ae4ff6
authored
Apr 20, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set SA_NOCLDWAIT in the SIGCHLD sigaction to avoid zombies.
parent
4df43cc2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
client.c
scheduler/client.c
+10
-2
No files found.
scheduler/client.c
View file @
22ae4ff6
...
...
@@ -672,11 +672,19 @@ void CLIENT_InitThread(void)
TEB
*
teb
=
NtCurrentTeb
();
int
version
,
ret
;
int
reply_pipe
[
2
];
struct
sigaction
sig_act
;
sig_act
.
sa_handler
=
SIG_IGN
;
sig_act
.
sa_flags
=
0
;
sigemptyset
(
&
sig_act
.
sa_mask
);
/* ignore SIGPIPE so that we get a EPIPE error instead */
sig
nal
(
SIGPIPE
,
SIG_IGN
);
sig
action
(
SIGPIPE
,
&
sig_act
,
NULL
);
/* automatic child reaping to avoid zombies */
signal
(
SIGCHLD
,
SIG_IGN
);
#ifdef SA_NOCLDWAIT
sig_act
.
sa_flags
|=
SA_NOCLDWAIT
;
#endif
sigaction
(
SIGCHLD
,
&
sig_act
,
NULL
);
/* create the server->client communication pipes */
if
(
pipe
(
reply_pipe
)
==
-
1
)
server_protocol_perror
(
"pipe"
);
...
...
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