Path: utzoo!utgpu!water!watmath!clyde!att!pacbell!ames!haven!mimsy!tank!uxc!uxc.cso.uiuc.edu!m.cs.uiuc.edu!s.cs.uiuc.edu!carroll From: carroll@s.cs.uiuc.edu Newsgroups: comp.unix.questions Subject: Re: Signals Message-ID: <216000007@s.cs.uiuc.edu> Date: 25 Oct 88 20:24:00 GMT References: <349@mccc.UUCP> Lines: 18 Nf-ID: #R:mccc.UUCP:349:s.cs.uiuc.edu:216000007:000:912 Nf-From: s.cs.uiuc.edu!carroll Oct 25 15:24:00 1988 /* Written 8:20 pm Oct 23, 1988 by pjh@mccc.UUCP in s.cs.uiuc.edu:comp.unix.questions */ /* ---------- "Signals" ---------- */ > 1) What is signal 0? It is a 'psuedo' signal, used by Bourne Shell and Korn Shell to mean 'the shell is exiting normally'. Although you can set traps on it, they are caught by mechanisms other than normal signal handling. > 2) What signal does ^d (the logout key) generate? As above, it generates the 'signal' 0. This has no meaning except for traps set on 0. Since you refered to it as the 'logout' key (and not the end-of-file key), I assume that you were asking about how it interacts with a shell. For a normal program, it doesn't generate any signal. Alan M. Carroll "How many danger signs did you ignore? carroll@s.cs.uiuc.edu How many times had you heard it all before?" - AP&EW CS Grad / U of Ill @ Urbana ...{ucbvax,pur-ee,convex}!s.cs.uiuc.edu!carroll