comparison src/callproc.c @ 108235:9aa39b975b8a

Remove BSD_PGRPS. * s/bsd-common.h (BSD_PGRPS): Remove undef. * s/gnu-linux.h (BSD_PGRPS): Remove. * term.c (dissociate_if_controlling_tty): * sysdep.c (narrow_foreground_group, widen_foreground_group) (init_sys_modes, reset_sys_modes): * emacs.c (main): * callproc.c (Fcall_process, child_setup): Remove code depending on BSD_PGRPS.
author Dan Nicolaescu <dann@ics.uci.edu>
date Tue, 04 May 2010 00:40:53 -0700
parents 261591829d04
children 511da81b16c5
comparison
equal deleted inserted replaced
108234:06c34f190db1 108235:9aa39b975b8a
89 #ifndef USE_CRT_DLL 89 #ifndef USE_CRT_DLL
90 extern char **environ; 90 extern char **environ;
91 #endif 91 #endif
92 92
93 #ifdef HAVE_SETPGID 93 #ifdef HAVE_SETPGID
94 #if !defined (USG) || defined (BSD_PGRPS) 94 #if !defined (USG)
95 #undef setpgrp 95 #undef setpgrp
96 #define setpgrp setpgid 96 #define setpgrp setpgid
97 #endif 97 #endif
98 #endif 98 #endif
99 99
579 if (fd[0] >= 0) 579 if (fd[0] >= 0)
580 emacs_close (fd[0]); 580 emacs_close (fd[0]);
581 #ifdef HAVE_SETSID 581 #ifdef HAVE_SETSID
582 setsid (); 582 setsid ();
583 #endif 583 #endif
584 #if defined (USG) && !defined (BSD_PGRPS) 584 #if defined (USG)
585 setpgrp (); 585 setpgrp ();
586 #else 586 #else
587 setpgrp (pid, pid); 587 setpgrp (pid, pid);
588 #endif /* USG */ 588 #endif /* USG */
589 child_setup (filefd, fd1, fd_error, (char **) new_argv, 589 child_setup (filefd, fd1, fd_error, (char **) new_argv,
1249 emacs_close (out); 1249 emacs_close (out);
1250 emacs_close (err); 1250 emacs_close (err);
1251 #endif /* not MSDOS */ 1251 #endif /* not MSDOS */
1252 #endif /* not WINDOWSNT */ 1252 #endif /* not WINDOWSNT */
1253 1253
1254 #if defined(USG) && !defined(BSD_PGRPS) 1254 #if defined(USG)
1255 #ifndef SETPGRP_RELEASES_CTTY 1255 #ifndef SETPGRP_RELEASES_CTTY
1256 setpgrp (); /* No arguments but equivalent in this case */ 1256 setpgrp (); /* No arguments but equivalent in this case */
1257 #endif 1257 #endif
1258 #else 1258 #else
1259 setpgrp (pid, pid); 1259 setpgrp (pid, pid);