Karl Heuer
8db121c493
(wait_reading_process_input) [not subprocesses]: Do
...
not assume SELECT_TYPE is an int.
1996-01-24 21:21:07 +00:00
Erik Naggum
3b7ad313e0
Update FSF's address in the preamble.
1996-01-15 09:18:04 +00:00
Karl Heuer
4a127b3b17
(create_process): Restore the signal state
...
after vfork whether it succeeds or not.
1996-01-09 23:40:33 +00:00
Erik Naggum
4ee3e30977
(Fprocessp, Fget_buffer_process, Fdelete_process, Fprocess_status,
...
Fprocess_exit_status, Fprocess_id, Fprocess_name, Fprocess_command,
Fprocess_tty_name, Fset_process_buffer, Fprocess_buffer, Fprocess_mark,
Fset_process_filter, Fprocess_filter, Fset_process_sentinel,
Fprocess_sentinel, Fset_process_window_size, Fprocess_kill_without_query,
Faccept_process_output): Harmonize arguments with documentation.
1996-01-09 00:33:39 +00:00
Karl Heuer
8e6208c5d2
Comment fixes.
1996-01-05 10:03:17 +00:00
Karl Heuer
798b64bbf6
(Fopen_network_stream): Call bind_polling_period earlier.
1995-12-21 17:13:25 +00:00
Karl Heuer
0dc70c33a0
(create_process): Use Posix signal handling to
...
block signals, if available. If HAVE_VFORK, save and restore
signal handlers that the child might change, since in many
systems (e.g. Solaris 2.4) if the child changes the signal
handlers this munges the parent's handler.
1995-12-13 01:52:07 +00:00
Geoff Voelker
583dcae42e
[HAVE_NTGUI] (POLL_FOR_INPUT): Define macro.
...
Use HAVE_WINDOW_SYSTEM instead of testing for specific window systems.
1995-11-07 07:23:14 +00:00
Richard M. Stallman
927e08bef8
(exec_sentinel, read_process_output):
...
Call record_asynch_buffer_change only if caller is reading kbd input.
1995-10-09 00:31:24 +00:00
Richard M. Stallman
7973cfa85e
(read_process_output, exec_sentinel): Call
...
record_asynch_buffer_change after any eval. Don't call
prepare_menu_bars.
(wait_reading_process_input): Don't call prepare_menu_bars.
1995-08-08 21:22:16 +00:00
Richard M. Stallman
f2cfa9a63e
Maybe include net/errno.h.
1995-08-02 18:31:46 +00:00
Richard M. Stallman
f8a8749802
(Fstart_process): Don't expand the file name before trying openp.
1995-07-25 01:42:05 +00:00
Karl Heuer
ee8e09af76
(keyboard_bit_set): Fix one-off in loop end.
1995-07-17 22:21:21 +00:00
Richard M. Stallman
13373f4ece
(Fstart_process): Expand PROGRAM.
...
Error if it is a directory.
1995-07-07 13:34:16 +00:00
Richard M. Stallman
4590788aa9
(Fopen_network_stream): Sleep 1 sec before connect retry.
1995-06-25 18:57:25 +00:00
Richard M. Stallman
5fc0154cf4
(sigchld_handler): Change XSETFASTINT to XSETINT.
1995-06-19 23:18:54 +00:00
Richard M. Stallman
306230858e
(status_notify): Undo May 18 change.
...
Set update_tick at the beginning not at end.
1995-06-14 14:10:27 +00:00
Karl Heuer
81afb6d1eb
[!subprocesses]: Include sysselect.h.
1995-06-08 19:21:05 +00:00
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