Path: utzoo!utgpu!water!watmath!clyde!rutgers!umd5!vrdxhq!dgis!csed-1!roskos From: roskos@csed-1.UUCP (Eric Roskos) Newsgroups: comp.os.minix Subject: Simple (?) question re signals Message-ID: <256@csed-47.csed-1.UUCP> Date: 21 Jan 88 03:42:38 GMT Organization: IDA, Alexandria, VA Lines: 21 This is something that has puzzled me for awhile. If you are logged in under Minix, and you type the character that generates a SIGINT (the DEL key by default), what determines which processes the signal gets distributed to? On the version of Minix I am running the signal only goes to the shell. I thought maybe I'd lost some code when I applied the 1.2 changes, but when I look in the textbook, I can't seem to find it. It looks like the code assumes that there's an "appropriate" process at a process slot whose position depends on the tty the character was typed on, and that it sends the signal to that one, but no other. Is that true, or am I missing something? Can you be certain that the process at a given process slot will always be the right one? (E.g., what if a fork() happens to occur just as your shell exits?) The code I'm looking at at the moment is on line 382 of file tty.c in the version 1.2 sources. -- ------- Eric Roskos, IDA (...dgis!csed-1!roskos or csed-1!roskos@HC.DSPO.GOV)