Path: utzoo!attcan!uunet!mcvax!unido!fauern!faui44!rtregn From: rtregn@faui44.informatik.uni-erlangen.de (Robert Regn) Newsgroups: comp.os.minix Subject: Bug in lib/system.c - New deadlocks in PC Minix Keywords: system.c Message-ID: <753@faui10.informatik.uni-erlangen.de> Date: 30 Nov 88 11:56:14 GMT Organization: CSD University of Erlangen, W-Germany Lines: 41 I have detected a bug in lib/system.c (V1.3b == latest) A failing fork exits the entire process - very bad for editors with modified buffers ! *** 1.3/b.fertig/lib/system.c Tue Oct 4 15:06:02 1988 --- /tmp/system.c Wed Nov 30 12:08:13 1988 *************** *** 12,18 **** } /* Check to see if fork failed. */ ! if (procid < 0) exit(1); while ( (waitstat = wait(&retstat)) != procid && waitstat != -1 ) ; if (waitstat == -1) retstat = -1; --- 12,18 ---- } /* Check to see if fork failed. */ ! if (procid < 0) return (-1); while ( (waitstat = wait(&retstat)) != procid && waitstat != -1 ) ; if (waitstat == -1) retstat = -1; ========================================================== I'am working with Minix very often connected with tty1 (remote login from a Sun ). If two or more processes write simultaneously on tty1, one of them hangs on FS. Trying to kill it hangs the system. Try (logged in over tty1) : ps -lax & ls or : make & ls -l (repeated until make says anything) Has Anyone else this problems ? Are fixes ? Robert Regn rtregn@faui32.uucp