Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
3de1c713
Commit
3de1c713
authored
Nov 30, 2011
by
Ken Thomases
Committed by
Alexandre Julliard
Dec 01, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32: Reap child process to avoid leaving a zombie.
parent
99797252
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
dispatcher.c
dlls/secur32/dispatcher.c
+15
-2
No files found.
dlls/secur32/dispatcher.c
View file @
3de1c713
...
...
@@ -28,7 +28,10 @@
#include <sys/types.h>
#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h>
#endif
#endif
#ifdef HAVE_SYS_ERRNO_H
#include <sys/errno.h>
#endif
#include <stdlib.h>
#include <fcntl.h>
#include "windef.h"
...
...
@@ -276,7 +279,7 @@ void cleanup_helper(PNegoHelper helper)
{
TRACE
(
"Killing helper %p
\n
"
,
helper
);
if
(
(
helper
==
NULL
)
||
(
helper
->
helper_pid
==
0
)
)
if
(
helper
==
NULL
)
return
;
HeapFree
(
GetProcessHeap
(),
0
,
helper
->
com_buf
);
...
...
@@ -285,6 +288,16 @@ void cleanup_helper(PNegoHelper helper)
close
(
helper
->
pipe_out
);
close
(
helper
->
pipe_in
);
#ifdef HAVE_FORK
if
(
helper
->
helper_pid
>
0
)
/* reap child */
{
pid_t
wret
;
do
{
wret
=
waitpid
(
helper
->
helper_pid
,
NULL
,
0
);
}
while
(
wret
<
0
&&
errno
==
EINTR
);
}
#endif
HeapFree
(
GetProcessHeap
(),
0
,
helper
);
}
...
...
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