dd4fad93e4
Don't include 'sync ' in the semaphore name because it will end up as a separate argument in the child process, causing it to not find the semaphore. Switch the child to OpenSemaphoreA() to reduce the risk of accidentally create a new semaphore instead of opening the parent's one. Use wait_child_process() instead of a raw WaitForSingleObject(). The timeout is longer but the process is expected to exit immediately anyway and this allows proper handling of child failures (such as if there is a bug with the semaphore handling). Signed-off-by: Francois Gouget <fgouget@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org> |
||
---|---|---|
.. | ||
nls | ||
tests | ||
Makefile.in | ||
actctx.c | ||
atom.c | ||
comm.c | ||
computername.c | ||
console.c | ||
console_private.h | ||
cpu.c | ||
debugger.c | ||
editline.c | ||
environ.c | ||
file.c | ||
format_msg.c | ||
heap.c | ||
kernel32.spec | ||
kernel_main.c | ||
kernel_private.h | ||
lcformat.c | ||
locale.c | ||
locale_rc.rc | ||
lzexpand.c | ||
module.c | ||
path.c | ||
powermgnt.c | ||
process.c | ||
profile.c | ||
resource.c | ||
string.c | ||
sync.c | ||
tape.c | ||
term.c | ||
thread.c | ||
time.c | ||
toolhelp.c | ||
version.c | ||
version.rc | ||
virtual.c | ||
volume.c | ||
wer.c | ||
winerror.mc |