Mercurial > emacs
comparison src/callproc.c @ 579:e2782df984a2
*** empty log message ***
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Sat, 14 Mar 1992 20:43:29 +0000 |
parents | 3bf63e2cf890 |
children | 1d71babec025 |
comparison
equal
deleted
inserted
replaced
578:a4591b4d5435 | 579:e2782df984a2 |
---|---|
1 /* Synchronous subprocess invocation for GNU Emacs. | 1 /* Synchronous subprocess invocation for GNU Emacs. |
2 Copyright (C) 1985, 1986, 1987, 1988 Free Software Foundation, Inc. | 2 Copyright (C) 1985, 1986, 1987, 1988, 1992 Free Software Foundation, Inc. |
3 | 3 |
4 This file is part of GNU Emacs. | 4 This file is part of GNU Emacs. |
5 | 5 |
6 GNU Emacs is free software; you can redistribute it and/or modify | 6 GNU Emacs is free software; you can redistribute it and/or modify |
7 it under the terms of the GNU General Public License as published by | 7 it under the terms of the GNU General Public License as published by |
380 /* Note that use of alloca is always safe here. It's obvious for systems | 380 /* Note that use of alloca is always safe here. It's obvious for systems |
381 that do not have true vfork or that have true (stack) alloca. | 381 that do not have true vfork or that have true (stack) alloca. |
382 If using vfork and C_ALLOCA it is safe because that changes | 382 If using vfork and C_ALLOCA it is safe because that changes |
383 the superior's static variables as if the superior had done alloca | 383 the superior's static variables as if the superior had done alloca |
384 and will be cleaned up in the usual way. */ | 384 and will be cleaned up in the usual way. */ |
385 | |
386 { | 385 { |
387 register unsigned char *temp; | 386 register unsigned char *temp; |
388 register int i; | 387 register int i; |
389 | 388 |
390 i = XSTRING (current_dir)->size; | 389 i = XSTRING (current_dir)->size; |
436 dup2 (err, 2); | 435 dup2 (err, 2); |
437 close (in); | 436 close (in); |
438 close (out); | 437 close (out); |
439 close (err); | 438 close (err); |
440 | 439 |
440 #ifdef USG | |
441 setpgrp (); /* No arguments but equivalent in this case */ | |
442 #else | |
443 setpgrp (pid, pid); | |
444 #endif /* USG */ | |
441 setpgrp_of_tty (pid); | 445 setpgrp_of_tty (pid); |
442 | 446 |
443 #ifdef vipc | 447 #ifdef vipc |
444 something missing here; | 448 something missing here; |
445 #endif /* vipc */ | 449 #endif /* vipc */ |