Xref: utzoo comp.emacs:7343 gnu.emacs.bug:1370 Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!cica!iuvax!watmath!mks.com!eric From: eric@mks.com (Eric Gisin) Newsgroups: comp.emacs,gnu.emacs.bug Subject: Re: emacs hangs when invoke from a subshell Summary: SIGIO bug in BSD Message-ID: <1989Dec1.011823.27293@mks.com> Date: 1 Dec 89 01:18:23 GMT References: <8911290316.AA17359@soulcatcher.uk.oracle.com> Organization: Mortice Kern Systems Inc., Waterloo, Ontario, CANADA Lines: 14 When the process group id is not equal to the process id on BSD, the SIGIO signals do not get sent to emacs and it hangs. This happens if your shell does not have job control, or a sub-shell invokes emacs. A quick hack is to write a front end to emacs: main(argc, argv) { /* set process group to process id */ setpgrp(0, getpgrp(0)); execl(real_emacs, argv); } You can also put the setpgrp in emacs' startup (I'm not sure if this breaks anything). Brought to you by Super Global Mega Corp .com