Richard M. Stallman
ed0cae0592
(status_message): Add a cast.
...
(sigchld_handler): Add a cast.
1994-10-26 09:30:46 +00:00
Karl Heuer
a9fde32e8d
(list_processes_1): Print tty name.
1994-10-26 00:21:05 +00:00
Richard M. Stallman
a69281ffda
Handle multiple keyboard input descriptors.
...
(non_keyboard_wait_mask): New variable.
(Fset_process_filter): Update non_keyboard_wait_mask
(create_process, Fopen_network_stream, deactivate_process):
(init_process, sigchld_handler): Likewise.
(wait_reading_process_input): Maybe use non_keyboard_wait_mask.
(add_keyboard_wait_descriptor):
Renamed from change_keyboard_wait_descriptor.
Clear the old descriptor's bit only the first call.
(delete_keyboard_wait_descriptor): New function.
(keyboard_bit_set): New function.
(wait_reading_process_input): Use keyboard_bit_set.
Start the loop over process descs from 0, and explicitly
ignore non-process input descs.
(init_process): Don't init keyboard_descriptor.
(keyboard_descriptor): Variable deleted.
(add_keyboard_wait_descriptor): Don't set keyboard_descriptor.
(delete_keyboard_wait_descriptor): New function.
1994-10-25 09:48:44 +00:00
Karl Heuer
7c6f34f0cc
(read_process_output): Don't use XFASTINT as an lvalue.
1994-10-04 17:35:21 +00:00
Karl Heuer
22719df2b3
(make_process, list_processes_1, create_process, Faccept_process_output,
...
wait_reading_process_input, read_process_output, send_process,
sigchld_handler): Don't use XFASTINT as an lvalue.
1994-10-04 16:10:39 +00:00
Karl Heuer
1d056e645c
(make_process, create_process, Fopen_network_stream, deactivate_process,
...
Faccept_process_output, Fprocess_send_eof): Use new accessor macros instead of
calling XSET directly.
1994-10-04 12:21:04 +00:00
Karl Heuer
bcd69aea93
(decode_status, Fprocessp, Fget_process, Fget_buffer_process, Fprocess_status,
...
Fprocess_exit_status, list_processes_1, Fstart_process, Fopen_network_stream,
Faccept_process_output, wait_reading_process_input, sigchld_handler,
status_notify): Use type test macros.
1994-09-27 01:53:42 +00:00
Richard M. Stallman
16d71e8b20
(Fprocess_send_eof): Delete DID_REMOTE conditional.
1994-09-24 00:15:23 +00:00
Richard M. Stallman
3b9a3dfaee
(exec_sentinel_error_handler): New function.
...
(exec_sentinel): Catch all errors in the sentinel.
(read_process_output_error_handler): New function.
(read_process_output_call): New function.
(read_process_output): Catch and report errors in filters.
(pty_name): Move it up; make it static.
(create_process): Set the tty_name field.
(Fprocess_tty_name): New function.
(syms_of_process): defsubr it.
1994-09-23 22:28:08 +00:00
Richard M. Stallman
d430ee71cc
(wait_reading_process_input):
...
Clear waiting_for_user_input_p before returning.
1994-08-19 07:23:05 +00:00
Richard M. Stallman
5e7e1da2fe
(create_process): Set default handling for SIGINT, etc.
...
(wait_reading_process_input): Fix previous change.
1994-07-31 00:00:24 +00:00
Richard M. Stallman
e86bf40805
(wait_reading_process_input): If wait_for_cell,
...
do check for keyboard input and handle it.
1994-07-27 00:12:59 +00:00
Richard M. Stallman
5f0929a7f9
[!HAVE_H_ERRNO]: Declare h_errno.
...
(Fopen_network_stream): Set h_errno to 0 initially.
1994-07-25 20:47:57 +00:00
Richard M. Stallman
616da37c08
(Fopen_network_stream): Retry gethostbyname after TRY_AGAIN failure.
1994-07-19 19:35:43 +00:00
Richard M. Stallman
6545aadab7
(Qlast_nonmenu_event): New variable.
...
(syms_of_process): Set it up.
(read_process_output, exec_sentinel): Bind it to t around filter.
1994-07-13 03:52:05 +00:00
Richard M. Stallman
4556b700ea
(send_process): Major rewrite.
...
Don't put in a C-d unless a single line is too long.
Read process input whenever output gets stuck.
Relocate BUF if we read input. New arg OBJECT.
Fprocess_send_region, Fprocess_send_string, process_send_signal)
(Fprocess_send_eof): Pass new arg OBJECT.
1994-06-25 22:35:28 +00:00
Richard M. Stallman
343f4114c3
(Fprocess_status): Return nil for process name that has no process.
1994-06-17 13:40:33 +00:00
Karl Heuer
3081bf8d25
(create_process): Set input_wait_mask before forking.
1994-06-15 00:24:54 +00:00
Richard M. Stallman
d33a00f212
(Fprocess_send_eof): Doc fix.
1994-06-14 19:46:00 +00:00
Richard M. Stallman
e1ab4959f3
(kill_buffer_processes): For net conn, use Fdelete_process.
1994-06-01 20:36:08 +00:00
Richard M. Stallman
fe45da4e02
(create_process): Get a pty for any non-nil Vprocess_connection_type value.
1994-05-30 10:19:16 +00:00
Richard M. Stallman
4458f5554d
(create_process): Don't complain about error from TIOCSETD.
1994-05-21 07:28:57 +00:00
Richard M. Stallman
44ade2e949
(Fopen_network_stream): Call bind_polling_period; later unbind the binding.
...
(POLL_FOR_INPUT): Define, if appropriate.
1994-05-13 08:31:05 +00:00
Karl Heuer
8fb3cf6481
(exec_sentinel): Don't deactivate the mark. Check for asynch buffer switch.
1994-05-11 04:04:03 +00:00
Richard M. Stallman
d0adf46f86
(process_send_signal): If PREFER_VSUSP, use VSUSP instead of VSWTCH.
1994-05-09 03:30:55 +00:00
Richard M. Stallman
8b4d685f01
(wait_reading_process_input): Don't call prepare_menu_bars
...
unless we are going to redisplay for a garbaged frame.
(read_process_output): Call prepare_menu_bars if waiting for input.
(exec_sentinel): Call prepare_menu_bars if waiting for input.
1994-05-06 06:39:48 +00:00
Richard M. Stallman
7ce486180b
(create_process): Undo April 19 setsid change.
1994-05-02 04:07:06 +00:00
Paul Reilly
cf32fea0cd
(IN_ADDR, NUMERIC_ADDR_ERROR): Made conditional on HAVE_BROKEN_INET_ADDR.
1994-04-30 23:28:10 +00:00
Richard M. Stallman
e333e8646b
(Fopen_network_stream): Retry the connect if EADDRINUSE. Ignore EISCONN.
1994-04-30 06:05:51 +00:00
Richard M. Stallman
6311cf580d
(create_process): If vfork fails, close forkin and forkout.
1994-04-28 04:35:39 +00:00
Karl Heuer
9bcf8ec6d3
(create_process) [HAVE_TERMIOS && LDISC1]: Use tcsetattr.
1994-04-26 21:17:19 +00:00
Richard M. Stallman
ab01d0a826
(create_process): Use child_setup_tty only if pty_flag.
1994-04-24 03:10:24 +00:00
Richard M. Stallman
13a72104de
(create_process): Use SETUP_SLAVE_PTY only if pty_flag.
1994-04-24 03:06:55 +00:00
Richard M. Stallman
7d0e672ed4
(max_process_desc): New variable.
...
(wait_reading_process_output): Don't look for process output
beyond that many bits.
(create_process, Fopen_network_stream, deactivate_process): Update it.
(init_process): Initialize it.
1994-04-23 05:18:09 +00:00
Richard M. Stallman
51632cc823
(send_process): If fpathconf fails, use 250.
1994-04-21 19:54:28 +00:00
Richard M. Stallman
39e9ebcd7f
(create_process): Call setsid only if pty_flag.
1994-04-20 03:49:47 +00:00
Richard M. Stallman
aafadd9f17
(create_process): Fix previous change.
1994-04-18 17:40:25 +00:00
Richard M. Stallman
5029e0e016
(create_process): Test TIOCSETD along with NTTYDISC.
1994-04-16 07:26:19 +00:00
Richard M. Stallman
396df3227d
(Fset_process_window_size): New function.
1994-04-12 15:11:58 +00:00
Richard M. Stallman
1cac1fffd2
(send_process): Test pty_flag field for nil, not 0.
1994-04-12 04:39:34 +00:00
Karl Heuer
d72534bad1
(read_process_output): If buffer changes, record that fact.
1994-04-08 05:58:12 +00:00
Karl Heuer
e6194ffc49
Fix typos in comments.
1994-03-29 04:57:16 +00:00
Karl Heuer
2e4149a838
(status_notify): Use assignment, not initialization.
1994-03-25 00:40:16 +00:00
Richard M. Stallman
5164ee8e40
(wait_reading_process_input, both versions): Don't call
...
redisplay_preserve_echo_area unless do_display.
1994-03-20 01:16:55 +00:00
Karl Heuer
ff773a4e16
(create_process): Skip the ioctl if fd is -1.
1994-03-18 00:23:47 +00:00
Karl Heuer
3b639868ce
(Fstart_process): GCPRO some things.
1994-03-18 00:12:41 +00:00
Karl Heuer
51ab806af8
(Fget_buffer_process): Fix typo in comment.
1994-03-14 21:48:09 +00:00
Karl Heuer
1619761daf
(get_process): Allow arg to be a buffer object.
1994-03-12 03:13:20 +00:00
Roland McGrath
5d69474126
(send_process) [_PC_MAX_CANON]: Also test #ifdef HAVE_FPATHCONF before
...
trying to use fpathconf.
1994-03-08 06:53:48 +00:00
Richard M. Stallman
41f3aa98d1
(chan_process, Vprocess_alist): No longer static.
1994-03-02 23:35:11 +00:00