diff options
Diffstat (limited to 'src/process')
-rw-r--r-- | src/process/ntapi_tt_fork_v2.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 <psxtypes/psxtypes.h> +#include <ntapi/nt_atomic.h> #include <ntapi/nt_status.h> #include <ntapi/nt_object.h> #include <ntapi/nt_memory.h> @@ -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, |