🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #98400

suggested enhancement for "wakeup" program

#98400
From: Joe Wells
Date: Tue, 30 Jul 1991 19:02
30 lines
1673 bytes
The "wakeup" program should make sure it exits after the Emacs that
started it exits.  Otherwise it is possible for it to stay alive and
continue writing "Wake up!" to the pty which might become owned by some
random user.  Another possibility is to always start wakeup with
process-connection-type nil so that it uses a pipe.

-- 
Joe Wells <jbw@uswest.com>

------- Start of forwarded message -------
From: mjassels@concour.cs.concordia.ca
To: Joe Wells <jbw@maverick.uswest.COM>
Subject: Re: Wake up! showing up on users' terminals 
Date: Tue, 30 Jul 91 14:46:19 -0400

You wrote (in response to my question):
>You need to figure out why the "wakeup" program isn't dying when the Emacs
>process that started it exits.  It might be useful to put a check into
>"wakeup" to make it exit after its parent has exited (ie., getppid() == 1).
>
>-- 
>Enjoy,

I never managed to find out exactly why Emacs left "wakeup" alive, but
changing wakeup to test whether getppid() == 1 solved the problem.

Thanks,

Michael Assels
------- End of forwarded message -------
Technical Details
Message-ID: <9107301902.AA24465@maverick.uswest.com>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!maverick.USwest.COM!jbw

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,61971b2fed7b5d4a,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1991-07-30 12:02:56 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!maverick.USwest.COM!jbw
From: jbw@maverick.USwest.COM (Joe Wells)
Newsgroups: gnu.emacs.bug
Subject: suggested enhancement for "wakeup" program
Message-ID: <9107301902.AA24465@maverick.uswest.com>
Date: 30 Jul 91 19:02:56 GMT
Sender: gnulists@ai.mit.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 30
Approved: bug-gnu-emacs@prep.ai.mit.edu