• Eric Pouech's avatar
    server: Separate console and new group flag (CreateProcess). · 82b0bb3c
    Eric Pouech authored
    We were using bit 1 of RTL_USER_PROCESS_PARAMETERS for two different cases:
    - rightfully, as a sign to block ctrl-c events from being processed by
      handlers (and by default, terminating the process)
    - But this was also used to request for the creation of a new process group.
    
    This patch properly separates the two use cases, by using the
    ProcessGroupId field in RTL_USER_PROCESS_PARAMETERS (checked that Win10
    behaves as this patch in RtlCreateUserProcess wrt.
    RTL_USER_PROCESS_PARAMETERS ProcessGroupId usage input/output).
    
    Introduce process_group_id in startup_info_t and use it to pass it to
    server. ProcessGroupId field in RTL_USER_PROCESS_PARAMETERS is now properly
    set.
    
    Note: this will change some external behavior.
    - before this patch, a child process created with Ctrl-C disabled
      (ConsoleFlags set), couldn't turn it on as the process was detached
      from unix console.
    - now, SIGINT handling is moved to kernelbase (and can be turned on/off at
      application will),
    - when creating a new windows group id, the child will be detached from
      unix console, so will no longer receives the SIGINT from ctrl-c in unix
      console (if parent was attached to this unix console).
    Signed-off-by: 's avatarEric Pouech <epouech@codeweavers.com>
    82b0bb3c
Name
Last commit
Last update
..
Makefile.in Loading commit data...
async.c Loading commit data...
atom.c Loading commit data...
change.c Loading commit data...
class.c Loading commit data...
clipboard.c Loading commit data...
completion.c Loading commit data...
console.c Loading commit data...
debugger.c Loading commit data...
device.c Loading commit data...
directory.c Loading commit data...
event.c Loading commit data...
fd.c Loading commit data...
file.c Loading commit data...
file.h Loading commit data...
handle.c Loading commit data...
handle.h Loading commit data...
hook.c Loading commit data...
mach.c Loading commit data...
mailslot.c Loading commit data...
main.c Loading commit data...
mapping.c Loading commit data...
mutex.c Loading commit data...
named_pipe.c Loading commit data...
object.c Loading commit data...
object.h Loading commit data...
process.c Loading commit data...
process.h Loading commit data...
procfs.c Loading commit data...
protocol.def Loading commit data...
ptrace.c Loading commit data...
queue.c Loading commit data...
region.c Loading commit data...
registry.c Loading commit data...
request.c Loading commit data...
request.h Loading commit data...
security.h Loading commit data...
semaphore.c Loading commit data...
serial.c Loading commit data...
signal.c Loading commit data...
sock.c Loading commit data...
symlink.c Loading commit data...
thread.c Loading commit data...
thread.h Loading commit data...
timer.c Loading commit data...
token.c Loading commit data...
trace.c Loading commit data...
unicode.c Loading commit data...
unicode.h Loading commit data...
user.c Loading commit data...
user.h Loading commit data...
window.c Loading commit data...
wineserver.de.UTF-8.man.in Loading commit data...
wineserver.fr.UTF-8.man.in Loading commit data...
wineserver.man.in Loading commit data...
winstation.c Loading commit data...