summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2020-12-03 22:23:01 +0000
committermidipix <writeonce@midipix.org>2020-12-04 13:24:16 +0000
commit9a449a25d26566c1a0c3e9d3e89e1ffc12e6bc4c (patch)
treef43673bbd4f0bf2ac067c97b732c26c57134d1f2 /src
parentb677ca4de0439f76c2e1234a15659976323c9ecd (diff)
downloadntapi-9a449a25d26566c1a0c3e9d3e89e1ffc12e6bc4c.tar.bz2
ntapi-9a449a25d26566c1a0c3e9d3e89e1ffc12e6bc4c.tar.xz
__ntapi_tt_fork_v2(): child: reset __internals->hlock.
Diffstat (limited to 'src')
-rw-r--r--src/process/ntapi_tt_fork_v2.c3
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,