comparison src/process-unix.c @ 854:1d8fb2eee1bb

[xemacs-hg @ 2002-05-28 16:06:58 by didierv] Fix header inclusion order
author didierv
date Tue, 28 May 2002 16:07:03 +0000
parents 2b6fa2618f76
children 211050afdc9a
comparison
equal deleted inserted replaced
853:2b6fa2618f76 854:1d8fb2eee1bb
51 #include "file-coding.h" 51 #include "file-coding.h"
52 52
53 #include <setjmp.h> 53 #include <setjmp.h>
54 #include "sysdir.h" 54 #include "sysdir.h"
55 #include "sysfile.h" 55 #include "sysfile.h"
56 #include "syssignal.h" /* Always include before systty.h and sysproc.h
57 -- didier*/
56 #include "sysproc.h" 58 #include "sysproc.h"
57 #include "systime.h" 59 #include "systime.h"
58 #include "syssignal.h" /* Always include before systty.h */
59 #include "systty.h" 60 #include "systty.h"
60 #include "syswait.h" 61 #include "syswait.h"
61 62
62 #ifdef HPUX 63 #ifdef HPUX
63 #include <grp.h> /* See grantpt fixups for HPUX below. */ 64 #include <grp.h> /* See grantpt fixups for HPUX below. */
1104 goto io_failure; 1105 goto io_failure;
1105 1106
1106 if (separate_err) 1107 if (separate_err)
1107 { 1108 {
1108 int sv[2]; 1109 int sv[2];
1109 1110
1110 if (pipe (sv) < 0) 1111 if (pipe (sv) < 0)
1111 goto io_failure; 1112 goto io_failure;
1112 forkerr = sv[1]; 1113 forkerr = sv[1];
1113 errchannel = sv[0]; 1114 errchannel = sv[0];
1114 } 1115 }
1115 1116
1116 #if 0 1117 #if 0
1117 /* Replaced by close_process_descs */ 1118 /* Replaced by close_process_descs */
1118 set_exclusive_use (inchannel); 1119 set_exclusive_use (inchannel);
1119 set_exclusive_use (outchannel); 1120 set_exclusive_use (outchannel);
1120 #endif 1121 #endif
2045 interrupts slowed down so it can't be used 2046 interrupts slowed down so it can't be used
2046 here. Async timers should already be disabled 2047 here. Async timers should already be disabled
2047 at this point so we can use `sleep'. 2048 at this point so we can use `sleep'.
2048 2049
2049 (Again, this was not conditionalized on FreeBSD. 2050 (Again, this was not conditionalized on FreeBSD.
2050 Let's not mess up systems without the problem. --ben) 2051 Let's not mess up systems without the problem. --ben)
2051 */ 2052 */
2052 sleep (1); 2053 sleep (1);
2053 #endif 2054 #endif
2054 retry++; 2055 retry++;
2055 goto loop; 2056 goto loop;