Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!lavaca.uh.edu!uhnix1!csuna!rr From: rr@csuna.cs.uh.edu (Ravindran Ramachandran) Newsgroups: comp.unix.questions Subject: Re: signal problems on BSD Message-ID: <24196@uhnix1.uh.edu> Date: 14 Mar 90 04:58:14 GMT References: <34853@cci632.UUCP> <1990Mar6.070333.29327@athena.mit.edu> <5913@star.cs.vu.nl> <1990Mar8.084830.9252@athena.mit.edu> Sender: nntppost@uhnix1.uh.edu Reply-To: rr@csuna.cs.uh.edu (Ravi Ramachandran) Organization: University of Houston Lines: 28 In article <1990Mar8.084830.9252@athena.mit.edu> jik@athena.mit.edu (Jonathan I. Kamens) writes: >In article <5913@star.cs.vu.nl>, maart@cs.vu.nl (Maarten Litmaath) writes: >> )doesn't happen in csh. Therefore, the reason your process is not >> )getting the signal is because the signal is never sent. >> >> ...because csh puts each job into its own process group and a the group of a >> background job never equals the tty process group (by definition!). > I had a similar kind of a problem on a Pyramid running ATT Sys 5, having csh as the base shell. I have a Bourne shell script that is started up from my .login, which runs a clock at the top corner of my tty. When I log out, however, the process remains active even though there is no actual device to output to. I tried in the script to 'trap' the signals, but they are not received on logout. The suggestion to: a) set setpgrp() is slightly a pain in a shell script. b) modify /bin/login (?) is impossible for me. Right now, in my .logout I do a ps, and use awk to get the pid so that I can explicitly kill the process. However, I wish the script would directly get the signal when I logout and expire! For your eyes only (please destroy after reading), --Ravi-