server: Don't debug children when DEBUG_PROCESS and DEBUG_ONLY_THIS_PROCESS flags are passed to CreateProcess.

This commit is contained in:
Piotr Caban 2014-04-09 10:15:41 +02:00 committed by Alexandre Julliard
parent 081df721d0
commit 4fca169301
2 changed files with 3 additions and 1 deletions

View File

@ -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);
}
}

View File

@ -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 */