aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
Commit message (Collapse)AuthorAgeFilesLines
* (IN_ADDR, NUMERIC_ADDR_ERROR): New macros (two versions).Richard M. Stallman1993-11-131-2/+11
| | | | (Fopen_network_stream): Use them.
* (get_process): Add `static' to definition.Richard M. Stallman1993-11-131-1/+1
|
* [TERM]: Include client.h.Richard M. Stallman1993-11-041-0/+13
| | | | (Fopen_network_stream): Handle TERM.
* (Fopen_netwrok_stream): Cast arg to inet_addr to (char *).Brian Fox1993-10-251-1/+1
|
* (status_notify): Don't read from process if filter is t.Richard M. Stallman1993-10-221-1/+7
| | | | (Fset_process_filter): Set or clear bit in input_wait_mask when nec.
* Include <config.h> instead of "config.h".Roland McGrath1993-09-101-1/+1
|
* (keyboard_descriptor): New variable.Richard M. Stallman1993-09-081-16/+35
| | | | | | (wait_reading_process_input, init_keyboard): Use it. Also call change_input_fd. (change_keyboard_wait_descriptor): New function.
* Include syswait.h.Richard M. Stallman1993-08-151-68/+5
| | | | | (wait_reading_process_input): Exit without waiting if wait_for_cell is already non-nil.
* (wait_reading_process_input): Undo last two changes:Richard M. Stallman1993-07-281-2/+7
| | | | when wait_for_cell, do not check the keyboard.
* (Fprocess_status): Use Fget_process, to avoid errorRichard M. Stallman1993-07-241-3/+1
| | | | if unknown process name.
* (Fget_buffer_process): Delete doc string fromRichard M. Stallman1993-07-221-13/+17
| | | | second alternative definition.
* (wait_reading_process_input): If wait_for_cell, do callRichard M. Stallman1993-07-091-2/+3
| | | | swallow_events and do_pending_window_change when appropriate.
* (wait_reading_process_input): Do include the keyboardRichard M. Stallman1993-07-021-9/+11
| | | | in the select, if read_kbd was a cons cell.
* (wait_reading_process_input): Use SIGIO only if defined.Richard M. Stallman1993-06-291-0/+2
|
* Changes for Irix 4.0, tested this time:Jim Blandy1993-06-181-1/+1
| | | | | | | | | | | | | | | | * 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.
* * callproc.c (Fcall_process, child_setup): If IRIX is #defined,Jim Blandy1993-06-171-2/+2
| | | | | | 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.
* (start_process_unwind): Use XINT.Richard M. Stallman1993-06-121-1/+1
|
* (read_process_output): Don't deactivate the mark.Richard M. Stallman1993-06-111-21/+2
| | | | Do restore Vdeactivate_mark, so that no one else deactivates it.
* Typo.Jim Blandy1993-06-101-1/+1
|
* * process.c (sigchld_handler): Add cast, to avoid warnings on Linux.Jim Blandy1993-06-091-1/+1
| | | | | (Fopen_network_stream): Cast the second argument to connect, to avoid warnings on any system that provides prototypes for connect.
* * process.c (sigchld_handler): Add cast, to avoid warnings on Linux.Jim Blandy1993-06-091-1/+1
|
* Apply typo patches from Paul Eggert.Jim Blandy1993-06-091-2/+2
|
* (read_process_output): Deactivate the mark.Richard M. Stallman1993-06-061-0/+32
| | | | Save and restore Vdeactivate_mark.
* (MAXDESC): Get it from FD_SETSIZE if that exists.Richard M. Stallman1993-05-291-0/+4
|
* (wait_reading_process_input): Call swallow_events.Richard M. Stallman1993-05-251-1/+5
|
* (create_process): Ignore retval from TIOCSTTY.Richard M. Stallman1993-05-241-2/+6
| | | | (sys_siglist) [LINUX]: Don't even declare it.
* Updated copyright years.Jim Blandy1993-05-221-1/+1
|
* * process.c (Fopen_network_stream): Deal with older systems, whichJim Blandy1993-05-221-2/+7
| | | | only have the h_addr field in their struct hostent.
* Some more changes from Michael K. Johnson for Linux.Jim Blandy1993-05-201-1/+1
| | | | | | | | | | | | | | | | | * 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.
* * process.c (wait_reading_process_input): Undo change of AprilJim Blandy1993-05-191-10/+15
| | | | | | 29th, since that re-introduces the race condition the comments are warning about. Call clear_waiting_for_input before calling status_notify, though.
* * process.c (wait_reading_process_input): Don't forget to callJim Blandy1993-05-191-1/+4
| | | | | clear_waiting_for_input when we exit the loop because process input has arrived.
* * process.c [__sgi] (allocate_pty): Give up immediately if pty isJim Blandy1993-05-191-1/+1
| | | | inaccessible.
* Document sun change.Jim Blandy1993-05-161-1/+7
|
* * process.c (wait_reading_process_input): If we're runningJim Blandy1993-05-151-1/+1
| | | | | | 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.
* (wait_reading_process_input): Move the status_notifyRichard M. Stallman1993-04-291-9/+9
| | | | call before the set_waiting_for_input call.
* New macros NULL_DEVICE and EXEC_SUFFIXES, to give the name of theJim Blandy1993-03-301-2/+2
| | | | | | | | | | | 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".
* Rename int-to-string to number-to-string, since it can handleJim Blandy1993-03-301-1/+1
| | | | | | | | | | | | 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.
* * process.c [VMS] (DCL_PROMPT): Remove hack.Jim Blandy1993-03-251-6/+8
| | | | | | (WIFSTOPPED, WIFSIGNALED, WIFEXITED, XRETCODE, WSTOPSIG, WCOREDUMP, WTERMSIG): New dummy definitions. (deactivate_process): Add missing semicolon.
* * process.c (wait_reading_process_input): Doc fix.Jim Blandy1993-03-201-0/+4
|
* Fix typo in previous change.Richard M. Stallman1993-03-171-1/+1
|
* (Fprocess_send_eof): Make sure proc is running.Richard M. Stallman1993-03-171-0/+7
|
* (wait_reading_process_input): New option to waitRichard M. Stallman1993-03-151-39/+14
| | | | | till a given cons cell has a non-nil car. Delete vipc conditionals.
* * process.c (process_send_signal): In the TERMIOS code for sendingJim Blandy1993-03-111-3/+5
| | | | | | | | 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.
* * process.c: Make sure we don't miss processes exiting, by havingJim Blandy1993-02-221-18/+65
| | | | | | | | | | | | 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.
* * process.c (Fstart_process): Jimb's change of December 11Michael I. Bushnell1993-02-181-1/+1
| | | | | | 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.
* * frame.h (FRAME_SAMPLE_VISIBILITY): Make sure frame is marked asJim Blandy1993-01-141-3/+3
| | | | | | | | | | | | | 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.
* Give subprocess creation a way to find a valid current directoryJim Blandy1992-12-121-12/+30
| | | | | | | | | | | | | | | | 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.
* Tue Dec 1 23:42:25 1992 Jim Blandy ([email protected])Jim Blandy1992-12-061-1/+2
| | | | * process.c (wait_reading_process_input): Doc fix.
* * systty.h, process.c, buffer.h, callproc.c, sysdep.c, dired.c:Jim Blandy1992-11-161-27/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* * process.c [SYSV]: Don't include <termios.h>, <termio.h>, orJim Blandy1992-11-071-8/+2
| | | | | | <fcntl.h>. (process_send_signal): Don't try to send SIGTSTP unless SIGTSTP is defined.