wine/server
Eric Pouech 82b0bb3c24 server: Separate console and new group flag (CreateProcess).
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: Eric Pouech <epouech@codeweavers.com>
2023-08-23 17:38:51 +02:00
..
async.c server: Cancel socket asyncs when the last handle in process is closed. 2023-07-20 21:48:39 +02:00
atom.c
change.c
class.c server: Correctly expose composited parent window and its child on position change. 2022-11-04 19:23:56 +01:00
clipboard.c
completion.c
console.c conhost.exe: Handle ctrl-\ in Wine. 2023-01-25 10:04:02 +01:00
debugger.c
device.c
directory.c
event.c
fd.c ntdll: Implement FILE_DISPOSITION_POSIX_SEMANTICS. 2023-06-27 22:14:15 +02:00
file.c
file.h server: Cancel socket asyncs when the last handle in process is closed. 2023-07-20 21:48:39 +02:00
handle.c server: Cancel socket asyncs when the last handle in process is closed. 2023-07-20 21:48:39 +02:00
handle.h server: Cancel socket asyncs when the last handle in process is closed. 2023-07-20 21:48:39 +02:00
hook.c
mach.c server: Avoid a mach port leak on Apple Silicon. 2023-08-10 10:02:35 +09:00
mailslot.c
main.c
Makefile.in
mapping.c ntdll: Implement NtQueryVirtualMemory(MemoryImageInformation). 2023-07-03 12:16:49 +02:00
mutex.c
named_pipe.c server: Cancel pipe asyncs when the last handle in process is closed. 2023-07-20 21:48:39 +02:00
object.c
object.h server: Annotate allocation functions with __WINE_(ALLOC_SIZE|DEALLOC|MALLOC). 2023-03-01 21:39:30 +01:00
process.c server: Separate console and new group flag (CreateProcess). 2023-08-23 17:38:51 +02:00
process.h
procfs.c
protocol.def server: Separate console and new group flag (CreateProcess). 2023-08-23 17:38:51 +02:00
ptrace.c
queue.c server: Pass set_cursor flags in WM_WINE_CLIPCURSOR wparam. 2023-06-16 21:35:58 +02:00
region.c server: Correctly expose composited parent window and its child on position change. 2022-11-04 19:23:56 +01:00
registry.c server: Make x86_64 a supported architecture on ARM64. 2023-05-09 14:28:04 +02:00
request.c
request.h server: Separate console and new group flag (CreateProcess). 2023-08-23 17:38:51 +02:00
security.h
semaphore.c
serial.c
signal.c
sock.c server: Don't consider non-pending poll requests when reselecting socket. 2023-08-14 13:32:26 +02:00
symlink.c
thread.c server: Send the APC call data as vararg in the select request. 2023-06-06 21:51:43 +02:00
thread.h
timer.c
token.c
trace.c server: Separate console and new group flag (CreateProcess). 2023-08-23 17:38:51 +02:00
unicode.c server: Use ARRAY_SIZE instead of open coding it. 2022-10-25 10:58:49 +02:00
unicode.h server: Annotate allocation functions with __WINE_(ALLOC_SIZE|DEALLOC|MALLOC). 2023-03-01 21:39:30 +01:00
user.c
user.h server: Pass set_cursor flags in WM_WINE_CLIPCURSOR wparam. 2023-06-16 21:35:58 +02:00
window.c server: Allow creating a real explorer desktop window for invisible window stations. 2023-07-03 22:15:42 +02:00
wineserver.de.UTF-8.man.in
wineserver.fr.UTF-8.man.in
wineserver.man.in
winstation.c server: Update the DF_WINE_CREATE_DESKTOP desktop flag on opening. 2023-06-15 22:10:51 +02:00