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

47 commits

Author SHA1 Message Date
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
Jim Blandy
161aa2f8d8 Some more changes from Michael K. Johnson for Linux.
* s/template.h: Mention that you should #define HAVE_TERMIO or
	HAVE_TERMIOS, but not both, and that HAVE_TERMIOS is preferred.
	* systty.h (EMACS_SET_TTY_PGRP): Don't assign the return value of
	tcsetpgrp to *pgid; it's just a status value.
	* config.h.in (HAVE_RANDOM): This shouldn't be defined on Linux
	systems using XFree386, and perhaps is inappropriate in general.
	* m/intel386.h: #undefine the integer size macros, since the Linux
	<values.h> file #defines them itself.
	* mem-limits.h (get_lim_data): Linux has the ulimit call; if it
	fails, fall back on ULIMIT_BREAK_VALUE.
	* process.c: Linux needs the WAITTYPE, etc. definitions.
	* unexec.c (hdr, ohdr): Linux has the ordinary `struct exec' type;
	no need to use SYSV names.
	* s/linux.h: New file.
1993-05-20 02:14:56 +00:00
Jim Blandy
90ab1a81b9 * process.c (wait_reading_process_input): Undo change of April
29th, since that re-introduces the race condition the comments are
	warning about.  Call clear_waiting_for_input before calling
	status_notify, though.
1993-05-19 05:41:37 +00:00
Jim Blandy
9aa2a7f43e * process.c (wait_reading_process_input): Don't forget to call
clear_waiting_for_input when we exit the loop because process
	input has arrived.
1993-05-19 05:05:46 +00:00
Jim Blandy
fad97cbed6 * process.c [__sgi] (allocate_pty): Give up immediately if pty is
inaccessible.
1993-05-19 04:38:28 +00:00
Jim Blandy
e01091534d Document sun change. 1993-05-16 18:12:57 +00:00
Jim Blandy
26ec91de25 * process.c (wait_reading_process_input): If we're running
Solaris, it's not necessary to check if we should redeliver SIGIO,
	according to David Mackenzie.
	* s/sol2.h: #include "usg5-4.h", and #define const.
1993-05-15 23:20:33 +00:00
Richard M. Stallman
68a752206e (wait_reading_process_input): Move the status_notify
call before the set_waiting_for_input call.
1993-04-29 15:57:17 +00:00
Jim Blandy
5437e9f97e New macros NULL_DEVICE and EXEC_SUFFIXES, to give the name of the
equivalent of /dev/null, and the suffixes used by executable
	files.  This is simple, and helps people porting Emacs to other
	operating systems.
	* process.h (NULL_DEVICE): Give this a default value.
	* process.c (Fstart_process): Pass EXEC_SUFFIXES to openp.
	(Fprocess_send_eof): Use NULL_DEVICE instead of "/dev/null".
	* callproc.c (Fcall_process): Pass EXEC_SUFFIXES to openp.
	Use NULL_DEVICE instead of "/dev/null".
1993-03-30 23:05:56 +00:00
Jim Blandy
f298026408 Rename int-to-string to number-to-string, since it can handle
floating-point as well as integer arguments.  subr.el defines the
	former as an alias for the latter.
	* data.c (Fnumber_to_string): Renamed from Fint_to_string.
	(wrong_type_argument): Adjust caller.
	(syms_of_data): Adjust defsubr.
	* fns.c (concat): Adjust caller.
	* lisp.h (Fnumber_to_string): Adjust extern declaration.
	* mocklisp.c (Finsert_string): Adjust caller.
	* process.c (status_message): Adjust caller.
1993-03-30 21:21:49 +00:00
Jim Blandy
c6c6865d43 * process.c [VMS] (DCL_PROMPT): Remove hack.
(WIFSTOPPED, WIFSIGNALED, WIFEXITED, XRETCODE, WSTOPSIG,
	WCOREDUMP, WTERMSIG): New dummy definitions.
	(deactivate_process): Add missing semicolon.
1993-03-25 02:27:16 +00:00
Jim Blandy
6e4f3667d9 * process.c (wait_reading_process_input): Doc fix. 1993-03-20 22:58:54 +00:00
Richard M. Stallman
dcf970e66f Fix typo in previous change. 1993-03-17 09:19:47 +00:00
Richard M. Stallman
577d03d57f (Fprocess_send_eof): Make sure proc is running. 1993-03-17 07:59:09 +00:00
Richard M. Stallman
84aa3ace66 (wait_reading_process_input): New option to wait
till a given cons cell has a non-nil car.
Delete vipc conditionals.
1993-03-15 06:09:04 +00:00
Jim Blandy
a87b802fe9 * process.c (process_send_signal): In the TERMIOS code for sending
control characters to processes, don't try to return Qnil; just
	return.

	* process.c [! subprocesses] (wait_reading_process_input):
	Remember to re-enable polling for input.
1993-03-11 07:14:16 +00:00
Jim Blandy
6be429b169 * process.c: Make sure we don't miss processes exiting, by having
the sigchld handler clear *input_available_clear_time.
	(wait_reading_process_input): Check for process activity after
	setting the timeout and calling set_waiting_for_input.
	(sigchld_handler): If the process which has exited is one we care
	about, clear *input_available_clear_time.

	* process.c (process_send_signal): Use TERMIOS functions in
	preference to BSD ioctls.  Some systems attempt to provide the BSD
	functions for backward compatibility, and get it wrong.
1993-02-22 14:47:53 +00:00
Michael I. Bushnell
82df4891d0 * process.c (Fstart_process): Jimb's change of December 11
had a misplaced paren.  This only became apparent because of
	jimb's change on February 8 to Fexpand_file_name.
	* callproc.c (Fcall_process): Ditto.
1993-02-18 03:43:45 +00:00
Jim Blandy
1dc77cc346 * frame.h (FRAME_SAMPLE_VISIBILITY): Make sure frame is marked as
garbaged whenever it goes from invisible to visible.
	* dispextern.h (frame_garbaged): Move extern declaration from here...
	* frame.h (frame_garbaged): ... to here.  The FRAME_SAMPLE_VISIBILITY
	macro uses it now, and this seems to be just as modular.  Make a
	new page, just for this and message_buf_print.
	(struct frame): Doc fix for the `visible' field.
	* process.c: #include "frame.h" instead of "dispextern.h"; the
	only thing we care about from it is the frame_garbaged
	declaration.
	* ymakefile: Note dependency change.
1993-01-14 15:13:19 +00:00
Jim Blandy
1e30af705a Give subprocess creation a way to find a valid current directory
for subprocesses when the buffer's default-directory is a handled
	name.
	* fileio.c (Funhandled_file_name_directory): New function.
	(Qunhandled_file_name_directory): New file-name-handler operation.
	(syms_of_fileio): Defsubr Sunhandled_file_name_directory, and
	initialize and staticpro Qunhandled_file_name_directory.
	* callproc.c (Fcall_process): Call Funhandled_file_name_directory
	on the buffer's default directory.  Do it earlier in the function
	so there's less to GCPRO.
	* process.c (create_process): Don't check the validity of the
	buffer's default directory here...
	(Fstart_process): Instead, do it here; if we call
	Funhandled_file_name_directory here, there's less GCPROing to do.
1992-12-12 15:36:50 +00:00
Jim Blandy
016899c07c Tue Dec 1 23:42:25 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* process.c (wait_reading_process_input): Doc fix.
1992-12-06 22:19:47 +00:00
Jim Blandy
b0310da46a * systty.h, process.c, buffer.h, callproc.c, sysdep.c, dired.c:
Added VMS changes from Roland Roberts.

	* process.c (read_process_output): Save, widen, insert the process
	output, and then restore the restriction if inserting text outside
	the visible region.

	* process.c (Fstart_process): Establish an unwind-protect to
	remove PROC from the process list if an error occurs while
	starting it.
	(start_process_unwind): New function to help with that.
	(create_process): There's no need to explicitly call
	remove_process if the fork fails; the record_unwind_protect in
	Fstart_process will take care of it.

	* process.c (wait_reading_process_input): Test the C preprocessor
	symbol "ultrix", not "__ultrix__" to see if we should ignore
	ENOMEM errors from select.

	* process.c (process_send_signal): On systems which have both
	the TIOCGETC and TCGETA ioctls, just use the former.

	* s/bsd4-2.h, s/bsd4-3.h: #define SIGNALS_VIA_CHARACTERS.
	* process.c (process_send_signal): Put all the code for sending
	signals via characters in a #ifdef SIGNALS_VIA_CHARACTERS.  Decide
	whether to use the Berkeley-style or SYSV-style ioctls by seeing
	which ioctl commands are #defined.

	* process.c (process_send_signal): Doc fix.
1992-11-16 00:53:26 +00:00
Jim Blandy
7d79e3b431 * process.c [SYSV]: Don't include <termios.h>, <termio.h>, or
<fcntl.h>.
	(process_send_signal): Don't try to send SIGTSTP
	unless SIGTSTP is defined.
1992-11-07 07:36:10 +00:00
Jim Blandy
f97388409e * process.c: (status_convert): Declare this to return a
Lisp_Object at the top of the file.
	(decode_status): Don't untag XCONS (tem)->cdr before storing it in
	tem; tem is a Lisp_Object, too.
	(process_send_signal): Declare this to be static void.  Don't
	return Qnil; nobody cares.
	(sigchld_handler): Use XFASTINT to manipulate p->infd.

	* process.c (pty_process): Variable deleted; it's no longer used.
	(syms_of_process): Don't initialize it.
1992-10-31 05:27:42 +00:00
Jim Blandy
8058415c7a * process.c (wait_reading_process_input): If the select returns
ENOMEM, treat that like EINTR under Ultrix.
1992-10-03 03:30:53 +00:00
Jim Blandy
63528b78dd * process.c [SIGCHLD && !BSD && !UNIPLUS && !HPUX]
(create_process): #if 0 out the code which sets the child's
	handler for SIGCHLD to sigchld; the code which gives sigchld its
	value has been diked out under these CPP symbols, so this should
	be diked out too.
1992-09-23 11:51:59 +00:00
Richard M. Stallman
de946e5aac (Faccept_process_output): Initialize useconds. 1992-09-20 21:06:42 +00:00
Jim Blandy
36ebaafa99 * process.c: Include "systty.h", not "systerm.h". 1992-08-29 03:05:43 +00:00
Richard M. Stallman
ce4c9c9080 (WCOREDUMP): Define only if not defined.
(create_process) [HAVE_SETSID]: Use TIOCSCTTY if exists.
1992-08-22 02:53:24 +00:00
Jim Blandy
0ad77c5462 * process.c (process_send_signal): Don't send SIGTSTP if the
system doesn't have that facility.

	* process.c: [USG5] Don't include <fcntl.h>.
	[USG] Don't bother including termios, termio, or fcntl; systerm.h
	takes care of all that.
	Remove the "mis;tak-+;;" line from the code; apparently this
	section of code does get used.

	* process.c (wait_reading_process_input): Put comments around
	text following #endif.
1992-08-19 06:35:23 +00:00
Jim Blandy
301c3fe461 entered into RCS 1992-07-22 18:20:35 +00:00
Richard M. Stallman
4d7c105e5d *** empty log message *** 1992-07-19 17:48:44 +00:00
Jim Blandy
ebb9e16f98 *** empty log message *** 1992-07-16 22:56:42 +00:00
Jim Blandy
ff11dfa15b *** empty log message *** 1992-07-13 20:53:59 +00:00
Joseph Arceneaux
508b171c56 *** empty log message *** 1992-06-05 18:39:41 +00:00
Jim Blandy
f76475ad8a *** empty log message *** 1992-05-19 05:22:52 +00:00
Jim Blandy
ffd56f97cf *** empty log message *** 1992-05-18 08:14:41 +00:00
Jim Blandy
e065a56e2d *** empty log message *** 1992-05-10 18:15:10 +00:00
Jim Blandy
32676c085c *** empty log message *** 1992-05-01 06:20:46 +00:00
Jim Blandy
4746118aca *** empty log message *** 1992-04-24 08:11:54 +00:00
Jim Blandy
0856496329 *** empty log message *** 1992-04-01 11:14:15 +00:00
Jim Blandy
6720a7fb28 *** empty log message *** 1992-03-18 20:22:31 +00:00
Jim Blandy
d0d6b7c506 Initial revision 1992-03-14 20:40:04 +00:00