From eca41ba9dca945e186dc7c57349d7361c165e787 Mon Sep 17 00:00:00 2001 From: Phil Budne Date: Mon, 21 Mar 2016 00:15:08 -0400 Subject: [PATCH] fix init: was branching to absolute "1" after processing a message. Top label is "l"!! --- src/cmd/init.s | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cmd/init.s b/src/cmd/init.s index fd966bf..6ba4867 100644 --- a/src/cmd/init.s +++ b/src/cmd/init.s @@ -4,16 +4,16 @@ sys intrp jms init1 " Fork the first child connected to ttyin/ttyout jms init2 " Fork the second child connected to keyboard/display -1: +l: sys rmes " Wait for a child to exit sad pid1 jmp 1f " It was child 1, so jump to 1f and restart it sad pid2 jms init2 " It was child 2, so restart it - jmp 1 " and loop back. XXX: weird use of 1: not 1b. I don't like it! + jmp l " and loop back. 1: jms init1 - jmp 1 " Weird use of 1: not 1b. I don't like it! + jmp l init1: 0 sys fork " Fork a child process