diff options
| author | Eli Zaretskii | 2010-07-13 13:57:00 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2010-07-13 13:57:00 +0300 |
| commit | 77defa9a250f03a401300d055a98e6f3a5a9e4d2 (patch) | |
| tree | 81456f3ad0f5cc63acd10ed1f1ac1d3f71e66b5f /src/callproc.c | |
| parent | 2047750525b9f9fd0181433246c5c0743b7df3d7 (diff) | |
| download | emacs-77defa9a250f03a401300d055a98e6f3a5a9e4d2.tar.gz emacs-77defa9a250f03a401300d055a98e6f3a5a9e4d2.zip | |
Remove more "#ifdef subprocesses".
process.c <inhibit_sentinels>: Move to the common part.
(Fwaiting_for_user_input_p): Move to the common part; return nil
if async subprocesses aren't supported.
sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
MS-DOS. Remove "#ifdef subprocesses".
(sys_subshell, sys_select): Remove "#ifdef subprocesses".
(gettimeofday): Remove "#ifdef subprocesses".
(wait_without_blocking): Remove function.
(flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
Remove "#ifdef subprocesses".
(child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
compiled on MS-DOS.
callproc.c (Fcall_process) [!MSDOS]: Don't call
wait_for_termination on MS-DOS.
emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
initialization of inhibit_sentinels.
keyboard.c (record_asynch_buffer_change): Remove "#ifdef
subprocesses" conditional.
callproc.c (Fcall_process) [!subprocesses]: Don't call
wait_for_termination, since `buffer' cannot be an integer when
async subprocesses are not supported
xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
for ifdefing away the call to Fprocess_status.
Diffstat (limited to 'src/callproc.c')
| -rw-r--r-- | src/callproc.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/callproc.c b/src/callproc.c index fd2cf6356ec..4286ab1ae29 100644 --- a/src/callproc.c +++ b/src/callproc.c | |||
| @@ -612,12 +612,6 @@ usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */) | |||
| 612 | { | 612 | { |
| 613 | if (fd[0] >= 0) | 613 | if (fd[0] >= 0) |
| 614 | emacs_close (fd[0]); | 614 | emacs_close (fd[0]); |
| 615 | #ifndef subprocesses | ||
| 616 | /* If Emacs has been built with asynchronous subprocess support, | ||
| 617 | we don't need to do this, I think because it will then have | ||
| 618 | the facilities for handling SIGCHLD. */ | ||
| 619 | wait_without_blocking (); | ||
| 620 | #endif /* subprocesses */ | ||
| 621 | return Qnil; | 615 | return Qnil; |
| 622 | } | 616 | } |
| 623 | 617 | ||
| @@ -811,8 +805,10 @@ usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */) | |||
| 811 | make_number (total_read)); | 805 | make_number (total_read)); |
| 812 | } | 806 | } |
| 813 | 807 | ||
| 808 | #ifndef MSDOS | ||
| 814 | /* Wait for it to terminate, unless it already has. */ | 809 | /* Wait for it to terminate, unless it already has. */ |
| 815 | wait_for_termination (pid); | 810 | wait_for_termination (pid); |
| 811 | #endif | ||
| 816 | 812 | ||
| 817 | immediate_quit = 0; | 813 | immediate_quit = 0; |
| 818 | 814 | ||