* setpgrp on msdos and w32
@ 2010-11-15 6:50 Dan Nicolaescu
2010-11-15 16:13 ` Eli Zaretskii
0 siblings, 1 reply; 2+ messages in thread
From: Dan Nicolaescu @ 2010-11-15 6:50 UTC (permalink / raw)
To: emacs-devel
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: setpgrp on msdos and w32
2010-11-15 6:50 setpgrp on msdos and w32 Dan Nicolaescu
@ 2010-11-15 16:13 ` Eli Zaretskii
0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2010-11-15 16:13 UTC (permalink / raw)
To: Dan Nicolaescu; +Cc: emacs-devel
> From: Dan Nicolaescu <dann@gnu.org>
> Date: Mon, 15 Nov 2010 01:50:58 -0500
>
> Does setpgrp do anything in our msdos and w32 ports?
No. You will see a no-op emulation of setpgrp in w32.c (for w32); the
C library used to build the MSDOS port does not even have an emulation.
> 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.
It isn't, because neither of these 2 builds defines USG.
> 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.
Yes, feel free to do that. Thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-11-15 16:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-15 6:50 setpgrp on msdos and w32 Dan Nicolaescu
2010-11-15 16:13 ` Eli Zaretskii
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).