1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-04 11:00:45 -08:00
Commit graph

92 commits

Author SHA1 Message Date
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
Richard M. Stallman
93b4f69974 Include unistd.h.
(pty_max_bytes): New variable.
(send_process): Send an eof after each pty_max_bytes bytes.
1994-03-02 22:50:31 +00:00
Roland McGrath
a86928f70c (sys_siglist): Protect decl with #ifndef SYS_SIGLIST_DECLARED. 1994-02-11 02:52:17 +00:00
Richard M. Stallman
f2d2dbfe1c (Fprocess_kill_without_query): Doc fix. 1994-02-08 07:26:28 +00:00
Richard M. Stallman
b97ad9eabe (sigchld_handler, status_message): Handle a NULL in sys_siglist. 1994-01-14 14:17:12 +00:00
Richard M. Stallman
2ea6d56151 (read_process_output): Supply second arg to unbind_to.
(exec_sentinel): Likewise.
1994-01-11 05:49:41 +00:00
Richard M. Stallman
afc549fd99 (create_process): Set line discipline only if pty_flag. 1994-01-10 18:13:39 +00:00
Roland McGrath
b062d1fe44 Don't declare sys_nerr.
Don't declare sys_errlist unless #ifdef VMS.
Declare strerror instead.
(wait_reading_process_input): Call strerror instead of using sys_errlist.
1994-01-09 23:06:40 +00:00
Richard M. Stallman
a0e4d3f399 Comment changes. 1994-01-09 12:16:26 +00:00
Richard M. Stallman
53aad33f8a (read_process_output): Use clip_to_bounds when moving
to the process marker.
1994-01-01 15:12:52 +00:00
Richard M. Stallman
000ab717b0 (create_process) [NTTYDISC]: Set the tty line discipline. 1993-12-25 01:44:47 +00:00
Richard M. Stallman
457a9beede (Fopen_network_stream): Turn off SIGIO while connecting. 1993-12-24 03:49:30 +00:00
Richard M. Stallman
99e3d726dc (Fprocess_status): Use get_process, not Fget_process.
[BROKEN_O_NONBLOCK]: Undefine O_NONBLOCK.

(create_process): Delete SYSV4_PTYS code.
(deactivate_process): Likewise.

(create_process) [SET_CHILD_PTY_PGRP]: Do ioctls
to set the pgrp of the pty.

(wait_reading_process_input): Call prepare_menu_bars.
1993-12-23 01:24:18 +00:00
Richard M. Stallman
53b6ab286b (deactivate_process) [SVR4_PTYS]: If subtty is not nil, close it. 1993-12-23 01:22:23 +00:00
Richard M. Stallman
c14e53a442 (create_process): Do setpgrp for USG regardless of IRIX.
(process_send_signal) [IRIX5]: For SIGTSTP, use VSUSP, not VSWTCH.
1993-11-25 21:36:51 +00:00
Richard M. Stallman
6c955bcb52 (Fdelete_process): Fix paren error. 1993-11-24 22:42:25 +00:00
Richard M. Stallman
a9f2c8845b (wait_reading_process_input):
Use -1 to mean wait_channel is empty.
Start process loop with descriptor 0 if keyboard_descriptor is not 0.
(make_process): Initialize descriptors to -1.
(Fdelete_process): -1 means empty, in infd.
(deactivate_process): Likewise.
(process_send_signal): Likewise.
(kill_buffer_processes): Likewise.
(sigchld_handler): Likewise.
(status_notify): Likewise.
(close_process_descs): Likewise.
(create_process): Likewise.
(Fopen_network_stream): Likewise.
(send_process): Likewise.
(Fprocess_send_eof): Likewise.  Use XINT when closing outfd.
(Fset_process_filter): Use XINT to get infd value.
(wait_reading_process_input): Likewise.

(wait_reading_process_input): When bypassing select, clear Available.
1993-11-23 10:57:16 +00:00
Richard M. Stallman
79967d5e93 (IN_ADDR, NUMERIC_ADDR_ERROR): New macros (two versions).
(Fopen_network_stream): Use them.
1993-11-13 09:31:34 +00:00
Richard M. Stallman
77b221b15d (get_process): Add `static' to definition. 1993-11-13 02:37:58 +00:00
Richard M. Stallman
1d2c16fa6d [TERM]: Include client.h.
(Fopen_network_stream): Handle TERM.
1993-11-04 22:13:15 +00:00
Brian Fox
393a96790d (Fopen_netwrok_stream): Cast arg to inet_addr to (char *). 1993-10-25 05:13:17 +00:00
Richard M. Stallman
20ddfff719 (status_notify): Don't read from process if filter is t.
(Fset_process_filter): Set or clear bit in input_wait_mask when nec.
1993-10-22 01:16:04 +00:00
Roland McGrath
18160b98ce Include <config.h> instead of "config.h". 1993-09-10 06:15:46 +00:00
Richard M. Stallman
dd2281ae2a (keyboard_descriptor): New variable.
(wait_reading_process_input, init_keyboard): Use it.
Also call change_input_fd.
(change_keyboard_wait_descriptor): New function.
1993-09-08 17:53:11 +00:00
Richard M. Stallman
889255b458 Include syswait.h.
(wait_reading_process_input): Exit without waiting
if wait_for_cell is already non-nil.
1993-08-15 03:52:43 +00:00
Richard M. Stallman
6cbc22ed96 (wait_reading_process_input): Undo last two changes:
when wait_for_cell, do not check the keyboard.
1993-07-28 08:19:30 +00:00
Richard M. Stallman
eb4686e4a3 (Fprocess_status): Use Fget_process, to avoid error
if unknown process name.
1993-07-24 05:47:16 +00:00
Richard M. Stallman
312c996467 (Fget_buffer_process): Delete doc string from
second alternative definition.
1993-07-22 19:38:51 +00:00
Richard M. Stallman
97f3b3d6e9 (wait_reading_process_input): If wait_for_cell, do call
swallow_events and do_pending_window_change when appropriate.
1993-07-09 21:42:51 +00:00
Richard M. Stallman
de6fd4b97c (wait_reading_process_input): Do include the keyboard
in the select, if read_kbd was a cons cell.
1993-07-02 05:43:43 +00:00
Richard M. Stallman
7324d660df (wait_reading_process_input): Use SIGIO only if defined. 1993-06-29 16:53:32 +00:00
Jim Blandy
5a570e3721 Changes for Irix 4.0, tested this time:
* s/irix4-0.h: Get rid of our fake definitions for setpgrp and
	getpgrp.
	* callproc.c (Fcall_process): Go ahead and use the USG calling
	convention for setpgrp.
	* ymakefile (pre-crt0.o): Add rule for this.  Perhaps it will help
	separate-source-directory compilation.
	* emacs.c (shut_down_emacs): Some USG systems #define
	EMACS_HAVE_TTY_PGRP; call getpgrp as appropriate for such systems.
	* sysdep.c (sys_suspend): Call getpgrp as appropriate for USG and
	non-USG.
	* process.c [IRIX] (create_process): Don't put child in process
	group zero before opening the tty; Irix is like USG in this
	regard.
1993-06-18 23:33:20 +00:00
Jim Blandy
b5aaed99d0 * callproc.c (Fcall_process, child_setup): If IRIX is #defined,
call setpgrp with arguments, even if USG is #defined.
	* process.c [IRIX] (create_process): Don't call setpgrp before
	opening the pty.  Call it after doing the TIOCNOTTY ioctl.
1993-06-17 22:03:06 +00:00
Richard M. Stallman
188d6c4e63 (start_process_unwind): Use XINT. 1993-06-12 16:58:31 +00:00
Richard M. Stallman
592ce97fa8 (read_process_output): Don't deactivate the mark.
Do restore Vdeactivate_mark, so that no one else deactivates it.
1993-06-11 21:06:14 +00:00
Jim Blandy
91d10fa88d Typo. 1993-06-10 09:32:18 +00:00
Jim Blandy
6382623783 * process.c (sigchld_handler): Add cast, to avoid warnings on Linux.
(Fopen_network_stream): Cast the second argument to connect, to
	avoid warnings on any system that provides prototypes for connect.
1993-06-09 12:39:16 +00:00
Jim Blandy
95e8068d3e * process.c (sigchld_handler): Add cast, to avoid warnings on Linux. 1993-06-09 12:30:13 +00:00
Jim Blandy
eb8c3be94e Apply typo patches from Paul Eggert. 1993-06-09 11:59:12 +00:00
Richard M. Stallman
30c7817593 (read_process_output): Deactivate the mark.
Save and restore Vdeactivate_mark.
1993-06-06 03:15:59 +00:00
Richard M. Stallman
334c4f2ffd (MAXDESC): Get it from FD_SETSIZE if that exists. 1993-05-29 05:02:18 +00:00
Richard M. Stallman
6e103bac2a (wait_reading_process_input): Call swallow_events. 1993-05-25 23:19:07 +00:00
Richard M. Stallman
084fd64ac9 (create_process): Ignore retval from TIOCSTTY.
(sys_siglist) [LINUX]: Don't even declare it.
1993-05-24 17:13:24 +00:00
Jim Blandy
c6c5df7f76 Updated copyright years. 1993-05-22 21:34:42 +00:00
Jim Blandy
39a21be6fc * process.c (Fopen_network_stream): Deal with older systems, which
only have the h_addr field in their struct hostent.
1993-05-22 00:12:17 +00:00