emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

setpgrp on msdos and w32


From: Dan Nicolaescu
Subject: setpgrp on msdos and w32
Date: Mon, 15 Nov 2010 01:50:58 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Does setpgrp do anything in our msdos and w32 ports?

The #else branch of this code from callproc.c:child_setup

#if defined(USG)
#ifndef SETPGRP_RELEASES_CTTY
  setpgrp ();                   /* No arguments but equivalent in this case */
#endif
#else
  setpgrp (pid, pid);
#endif /* USG */

might be executed on msdos and w32.

If setpgrp does not do anything, this code can be moved inside the not 
WINDOWSNT and not MSDOS 
#ifdefs, and that would allow all the code from that point to the end of the 
function to move
up, removing one set of #ifdefs.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]