diff options
| author | Karl Heuer | 1994-06-15 00:24:54 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-06-15 00:24:54 +0000 |
| commit | 3081bf8d2511f64fa498df997c375bac2c7a8689 (patch) | |
| tree | 0d04e258d88e914b0e82161dddc4588388cc6402 /src | |
| parent | 04d25c3dbf05d9be0016a7fef1ebc5b966dae159 (diff) | |
| download | emacs-3081bf8d2511f64fa498df997c375bac2c7a8689.tar.gz emacs-3081bf8d2511f64fa498df997c375bac2c7a8689.zip | |
(create_process): Set input_wait_mask before forking.
Diffstat (limited to 'src')
| -rw-r--r-- | src/process.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/process.c b/src/process.c index ebbbb93b9ed..e2f7f6a9794 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -1254,6 +1254,10 @@ create_process (process, new_argv, current_dir) | |||
| 1254 | #endif /* not BSD4_1 */ | 1254 | #endif /* not BSD4_1 */ |
| 1255 | #endif /* SIGCHLD */ | 1255 | #endif /* SIGCHLD */ |
| 1256 | 1256 | ||
| 1257 | FD_SET (inchannel, &input_wait_mask); | ||
| 1258 | if (inchannel > max_process_desc) | ||
| 1259 | max_process_desc = inchannel; | ||
| 1260 | |||
| 1257 | /* Until we store the proper pid, enable sigchld_handler | 1261 | /* Until we store the proper pid, enable sigchld_handler |
| 1258 | to recognize an unknown pid as standing for this process. | 1262 | to recognize an unknown pid as standing for this process. |
| 1259 | It is very important not to let this `marker' value stay | 1263 | It is very important not to let this `marker' value stay |
| @@ -1413,10 +1417,6 @@ create_process (process, new_argv, current_dir) | |||
| 1413 | 1417 | ||
| 1414 | XFASTINT (XPROCESS (process)->pid) = pid; | 1418 | XFASTINT (XPROCESS (process)->pid) = pid; |
| 1415 | 1419 | ||
| 1416 | FD_SET (inchannel, &input_wait_mask); | ||
| 1417 | if (inchannel > max_process_desc) | ||
| 1418 | max_process_desc = inchannel; | ||
| 1419 | |||
| 1420 | /* If the subfork execv fails, and it exits, | 1420 | /* If the subfork execv fails, and it exits, |
| 1421 | this close hangs. I don't know why. | 1421 | this close hangs. I don't know why. |
| 1422 | So have an interrupt jar it loose. */ | 1422 | So have an interrupt jar it loose. */ |