summaryrefslogtreecommitdiffstats
path: root/byterun/debugger.c
diff options
context:
space:
mode:
Diffstat (limited to 'byterun/debugger.c')
-rw-r--r--byterun/debugger.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/byterun/debugger.c b/byterun/debugger.c
index 237c24ef1..d615e485e 100644
--- a/byterun/debugger.c
+++ b/byterun/debugger.c
@@ -76,6 +76,7 @@ static void open_connection()
if (!debugger_in_use) register_global_root((value *) &dbg_in);
dbg_out = open_descr(dbg_socket);
if (!debugger_in_use) register_global_root((value *) &dbg_out);
+ if (!debugger_in_use) putword(dbg_out, -1); /* first connection */
putword(dbg_out, getpid());
flush(dbg_out);
}