server: Don't debug children when DEBUG_PROCESS and DEBUG_ONLY_THIS_PROCESS flags are passed to CreateProcess.
This commit is contained in:
parent
081df721d0
commit
4fca169301
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue