[comp.emacs] emacs hangs when invoke from a subshell correction

eric@mks.com (Eric Gisin) (12/02/89)

In article <1989Dec1.011823.27293@mks.com>, eric@mks.com (Eric Gisin) writes:
> 	/* set process group to process id */
> 	setpgrp(0, getpgrp(0));

Oops, that does nothing. The correct code is:
	setpgrp(0, getpid());
	execv(real_emacs, argv);