Mercurial > hg > xemacs-beta
comparison src/process-unix.c @ 5875:4949ccab25f1
Get M-x shell working on cygwin
author | Vin Shelton <acs@xemacs.org> |
---|---|
date | Tue, 24 Mar 2015 15:50:43 -0400 |
parents | a216b3c2b09e |
children |
comparison
equal
deleted
inserted
replaced
5874:3ed83b4b4882 | 5875:4949ccab25f1 |
---|---|
1120 cause I/O, and that, in turn, can confuse the X connection. */ | 1120 cause I/O, and that, in turn, can confuse the X connection. */ |
1121 begin_dont_check_for_quit(); | 1121 begin_dont_check_for_quit(); |
1122 | 1122 |
1123 /* Disconnect the current controlling terminal, pursuant to | 1123 /* Disconnect the current controlling terminal, pursuant to |
1124 making the pty be the controlling terminal of the process. | 1124 making the pty be the controlling terminal of the process. |
1125 Also put us in our own process group. */ | 1125 Also put us in our own process group. |
1126 | 1126 Moved this call to later in the function, because on Cygwin, |
1127 disconnect_controlling_terminal (); | 1127 setsid() causes the pty setup to fail in some way. |
1128 disconnect_controlling_terminal (); */ | |
1128 | 1129 |
1129 if (pty_flag) | 1130 if (pty_flag) |
1130 { | 1131 { |
1131 /* Open the pty connection and make the pty's terminal | 1132 /* Open the pty connection and make the pty's terminal |
1132 our controlling terminal. | 1133 our controlling terminal. |
1241 | 1242 |
1242 /* Set up the terminal characteristics of the pty. */ | 1243 /* Set up the terminal characteristics of the pty. */ |
1243 child_setup_tty (xforkout); | 1244 child_setup_tty (xforkout); |
1244 } /* if (pty_flag) */ | 1245 } /* if (pty_flag) */ |
1245 | 1246 |
1247 /* Moved this here because of Cygwin. Vin Shelton 2015-03-24. */ | |
1248 /* Disconnect the current controlling terminal, pursuant to | |
1249 making the pty be the controlling terminal of the process. | |
1250 Also put us in our own process group. */ | |
1251 disconnect_controlling_terminal (); | |
1246 | 1252 |
1247 EMACS_SIGNAL (SIGINT, SIG_DFL); | 1253 EMACS_SIGNAL (SIGINT, SIG_DFL); |
1248 EMACS_SIGNAL (SIGQUIT, SIG_DFL); | 1254 EMACS_SIGNAL (SIGQUIT, SIG_DFL); |
1249 | 1255 |
1250 { | 1256 { |