unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* EMACS_GET_TTY_PGRP vs. emacs_get_tty_pgrp
@ 2010-10-20 14:22 Ken Brown
  2010-10-20 15:14 ` Andreas Schwab
  2010-10-20 18:59 ` Dan Nicolaescu
  0 siblings, 2 replies; 9+ messages in thread
From: Ken Brown @ 2010-10-20 14:22 UTC (permalink / raw)
  To: emacs-devel

The macro EMACS_GET_TTY_PGRP defined in src/systty.h uses either 
tcgetpgrp or TIOCGPGRP to get the PGID of a terminal's foreground 
process group.  But src/process.c defines and uses its own 
emacs_get_tty_pgrp that only works on systems that have TIOCGPGRP.  Is 
there a good reason for this?  If not, I would like to try to prepare a 
patch to change process.c to use the macro instead.  This would simplify 
the code and would also extend some of the functionality in process.c to 
systems that have tcgetpgrp but not TIOCGPGRP.

Ken



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-10-20 21:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-20 14:22 EMACS_GET_TTY_PGRP vs. emacs_get_tty_pgrp Ken Brown
2010-10-20 15:14 ` Andreas Schwab
2010-10-20 18:39   ` Ken Brown
2010-10-20 18:59 ` Dan Nicolaescu
2010-10-20 20:01   ` Ken Brown
2010-10-20 20:21     ` Eli Zaretskii
2010-10-20 20:28     ` Dan Nicolaescu
2010-10-20 21:28       ` Ken Brown
2010-10-20 21:36       ` Andreas Schwab

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).