summaryrefslogtreecommitdiffstats
path: root/byterun/debugger.c
diff options
context:
space:
mode:
authorJérôme Vouillon <Jerome.Vouillon@pps.jussieu.fr>1997-03-22 20:06:05 +0000
committerJérôme Vouillon <Jerome.Vouillon@pps.jussieu.fr>1997-03-22 20:06:05 +0000
commit4b966034a59b8ab674a6fd1600e50d891cfed2f9 (patch)
tree75c73079fda5a946ea17e00a6c8ecab9c3e52a59 /byterun/debugger.c
parent09860ca9e553bd9ec680daffdd3e6e5a52a55b3b (diff)
Il faut pouvoir differencier un programme qui vient de se lancer d'un
programme qui a "forke'". git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1437 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
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);
}