1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-28 00:01:33 -08:00
Commit graph

157 commits

Author SHA1 Message Date
Karl Heuer
ecd1f654a1 (create_process, send_process): Add volatile qualifiers.
(wait_reading_process_input) [both versions]: Cast args of select.
1995-05-26 03:21:30 +00:00
Karl Heuer
bf351cc2be (status_notify): If Vprocess_alist changes within
the loop, do the whole loop again.
1995-05-18 16:54:42 +00:00
Richard M. Stallman
7efe788e31 (wait_reading_process_input): Pass arg in new call to set_waiting_for_input. 1995-05-07 22:23:26 +00:00
Richard M. Stallman
7286affd2a (wait_reading_process_input): Don't call prepare_menu_bars.
Clear waiting_for_input around calling redisplay_preserve_echo_area.
1995-05-06 23:07:51 +00:00
Richard M. Stallman
3162bafa9e (list_processes_1): Cast XFASTINT for passing to sprintf. 1995-05-05 02:16:54 +00:00
Karl Heuer
875e6b94f1 (create_process): Don't reference pty_name if !HAVE_PTYS. 1995-04-28 01:43:02 +00:00
Richard M. Stallman
4aa54ba872 (create_process): Don't abort if can't reopen
pty_name in the child.  Exit the child instead.
1995-04-24 05:52:11 +00:00
Roland McGrath
e01186a181 (create_process): Set PROCESS's tty_name to Qnil when !PTY_FLAG,
so Fprocess_tty_name returns nil for pipes as its docstring says.
1995-04-11 22:46:18 +00:00
Richard M. Stallman
833ba34267 (read_process_output_error_handler)
(exec_sentinel_error_handler): Fsleep_for wants two args.
1995-04-07 22:41:58 +00:00
Karl Heuer
f8c25f1b67 Update copyright. 1995-04-07 02:21:52 +00:00
Karl Heuer
9fa195a2cc (Fsignal_process): SIGCODE is a symbol, not a string. 1995-03-28 23:33:32 +00:00
Richard M. Stallman
4766242da2 (Fsignal_process): Allow signal names as well as numbers. 1995-03-28 17:34:52 +00:00
Richard M. Stallman
dfc21838c0 (exec_sentinel, read_process_output): If running filter
or sentinel changes the local map, call record_asynch_buffer_change.
1995-03-03 10:31:49 +00:00
Richard M. Stallman
7af71e17c1 (Fstart_process): Make process marker point into proc buf. 1995-02-14 14:23:49 +00:00
Karl Heuer
17d02632dd (process_tick, update_tick): Make non-static. 1995-01-25 02:02:37 +00:00
Karl Heuer
5886acf9ae #include sysselect.h instead of defining things by hand. 1995-01-23 23:10:11 +00:00
Francesco Potortì
7074fde664 Added code for automatically saving and restoring the match data
when a filter or sentinel tries to modify it.
1994-11-21 12:50:27 +00:00
Karl Heuer
23d6bb9cd8 (make_process): Use allocate_vectorlike and VECSIZE. 1994-11-16 05:03:02 +00:00
Karl Heuer
b5b502d667 (NETCONN_P, kill_buffer_processes): Use the new type-test macros. 1994-11-15 23:55:26 +00:00
Richard M. Stallman
3ea1d2918f (create_process) [OSF1]: Use setpgid, not setpgrp. 1994-11-10 08:12:48 +00:00
Richard M. Stallman
e98d950b32 Use macros IS_ANY_SEP, IS_DIRECTORY_SEP,
IS_DEVICE_SEP, DIRECTORY_SEP, and DEVICE_SEP.
[WINDOWSNT]: Add includes.  Don't define sys_siglist.

(sigchld_handler): Work around bug in MS C compiler.
(sigchld_handler) [WINDOWSNT]: Do not call signal.
(signal_process) [WINDOWSNT]: Use win32_kill_process instead of kill.
(read_process_output) [WINDOWSNT]: Use read_child_output instead of
read.

(create_process) [WINDOWSNT]: Use
pipe_with_inherited_out  and pipe_with_inherited_in.
Use the pid returned by child_setup.  Deal with not having vfork,
Call register_child.
(close_process_descs): Do nothing if WINDOWSNT.

(proc_buffer_char): No longer static.
1994-11-01 08:31:31 +00:00
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