Subject: Re: lib/3217: setting EDITOR to "pico -t" causes chfn (and others) to fail
To: None <thorpej@nas.nasa.gov>
From: Andrew Brown <codewarrior@daemon.org>
List: netbsd-bugs
Date: 02/16/1997 12:48:30
>basalt (thorpej) /sys/arch/powerpc/compile/GENERIC 173% echo $EDITOR
>emacs -nw
>basalt (thorpej) /sys/arch/powerpc/compile/GENERIC 174% chfn
>[ editor starts up, I frob the entry, C-x C-c ]
>...

i don't know that this is related, but i would also suggest that you add

  signal(SIGINT,SIG_IGN);
  signal(SIGQUIT,SIG_IGN);

to the code before the program in question (chfn, crontab -e, whatever
else uses this mechanism) forks and execs the editor, since while in
emacs, if i hit C-g (after having hit something i didn't mean to) the
intermediate sh dies (from the sigquit) and crontab decides you're done,
leaving emacs running, but now in the background as a child of init.

-- 
|-----< "CODE WARRIOR" >-----|
andrew@echonyc.com (TheMan)        * "ah!  i see you have the internet
codewarrior@daemon.org                               that goes *ping*!"
warfare@graffiti.com      * "information is power -- share the wealth."