From 9a449a25d26566c1a0c3e9d3e89e1ffc12e6bc4c Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 3 Dec 2020 22:23:01 +0000 Subject: __ntapi_tt_fork_v2(): child: reset __internals->hlock. --- src/process/ntapi_tt_fork_v2.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/process/ntapi_tt_fork_v2.c b/src/process/ntapi_tt_fork_v2.c index b558b61..81da4a4 100644 --- a/src/process/ntapi_tt_fork_v2.c +++ b/src/process/ntapi_tt_fork_v2.c @@ -5,6 +5,7 @@ /********************************************************/ #include +#include #include #include #include @@ -149,6 +150,8 @@ intptr_t __fastcall __ntapi_tt_fork_v2( return pid; if (pid == 0) { + at_store(&__internals->hlock,0); + if ((status = __ntapi->tty_connect( hport_session, __internals->subsystem->base_named_objects, -- cgit v1.2.3