Commit 4fca1693 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

server: Don't debug children when DEBUG_PROCESS and DEBUG_ONLY_THIS_PROCESS…

server: Don't debug children when DEBUG_PROCESS and DEBUG_ONLY_THIS_PROCESS flags are passed to CreateProcess.
parent 081df721
......@@ -846,6 +846,7 @@ START_TEST(debugger)
test_debug_loop(myARGC, myARGV);
test_debug_children(myARGV[0], DEBUG_PROCESS, TRUE);
test_debug_children(myARGV[0], DEBUG_ONLY_THIS_PROCESS, FALSE);
test_debug_children(myARGV[0], DEBUG_PROCESS|DEBUG_ONLY_THIS_PROCESS, FALSE);
test_debug_children(myARGV[0], 0, FALSE);
}
}
......@@ -955,7 +955,8 @@ DECL_HANDLER(new_process)
if (!(thread = create_process( socket_fd, current, req->inherit_all ))) goto done;
process = thread->process;
process->debug_children = !!(req->create_flags & DEBUG_PROCESS);
process->debug_children = (req->create_flags & DEBUG_PROCESS)
&& !(req->create_flags & DEBUG_ONLY_THIS_PROCESS);
process->startup_info = (struct startup_info *)grab_object( info );
/* connect to the window station */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment