aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
Commit message (Collapse)AuthorAgeFilesLines
* Update FSF's address.Lute Kamstra2005-07-041-2/+2
|
* (Fstop_process, Fcontinue_process): Follow error conventions.Juanma Barranquero2005-06-231-2/+2
|
* (Fmake_network_process): Fix spellings.Juanma Barranquero2005-06-211-1/+1
|
* (syms_of_process) [ADAPTIVE_READ_BUFFERING]: Fix spellings in docstrings.Juanma Barranquero2005-06-101-1/+1
|
* * composite.c (compose_chars_in_text):Kim F. Storm2005-06-081-10/+10
| | | | | | | | | | | * eval.c (do_autoload): * macmenu.c (set_frame_menubar): * process.c (read_process_output, exec_sentinel): * xmenu.c (set_frame_menubar): * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar): * w32menu.c (set_frame_menubar): Use record_unwind_save_match_data. Rename restore_match_data to restore_search_regs.
* (Fstart_process): Don't touch command_channel_p slot.Richard M. Stallman2005-06-081-1/+0
|
* Improve commentary for adaptive read buffering.Kim F. Storm2005-06-071-4/+13
|
* (send_process): Move misplaced volatile.Andreas Schwab2005-05-221-1/+1
|
* (send_process): Remove misplaced volatile.Andreas Schwab2005-05-221-1/+1
|
* (send_process): Restore the SIGPIPE handler if we catch a SIGPIPE.Eli Zaretskii2005-05-211-1/+2
|
* (send_process_trap): Unblock SIGPIPE.Richard M. Stallman2005-05-141-1/+6
| | | | (send_process): Reset SIGPIPE handler before reporting error.
* (Vfile_name_coding_system, Vdefault_file_name_coding_system):Stefan Monnier2005-03-241-4/+2
| | | | Remove unused declarations.
* (init_process): Change `#ifdef DARWIN' to `#if defined (DARWIN) ||YAMAMOTO Mitsuharu2005-03-161-1/+1
| | | | defined (MAC_OSX)'
* * s/darwin.h: Removed PTY_ITERATION from here.Steven Tamm2005-01-221-0/+14
| | | | | | | | (DARWIN): Defined. * process.c (init_process): Default process-connection-type to nil on darwin 6 or less, t if it is 7 or higher. This way the broken pty behavior is still allowed on darwin 6 for interactive processes for people that know what they are doing.
* (list_processes_1): Set undo_list instead of calling Fbuffer_undo_list.Richard M. Stallman2004-12-271-1/+1
|
* * syssignal.h: Declare main_thread.Jan Djärv2004-12-151-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (SIGNAL_THREAD_CHECK): New macro. * keyboard.c (input_available_signal): Move thread checking code to macro SIGNAL_THREAD_CHECK and call that macro. (interrupt_signal): Call SIGNAL_THREAD_CHECK. * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c. * emacs.c: Define main_thread. (main): Initialize main_thread. (handle_USR1_signal, handle_USR2_signal, fatal_error_signal) (memory_warning_signal): Call SIGNAL_THREAD_CHECK. * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK. * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK. * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK. * process.c (send_process_trap, sigchld_handler): Call SIGNAL_THREAD_CHECK. * data.c (arith_error): Call SIGNAL_THREAD_CHECK. * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
* (Fmake_network_process): Remove unused var 'retry'.Kim F. Storm2004-11-091-1/+0
|
* (Fmake_network_process): Remove kludge for interruptedKim F. Storm2004-11-091-14/+5
| | | | | connects on BSD. If connect is interrupted, just close socket and start over rather than sleeping and retry with same socket.
* (connect_wait_mask, num_pending_connects): OnlyKim F. Storm2004-11-011-7/+41
| | | | | | | | declare and use them if NON_BLOCKING_CONNECT is defined. (IF_NON_BLOCKING_CONNECT): New helper macro. (wait_reading_process_output): Only declare and use local vars Connecting and check_connect when NON_BLOCKING_CONNECT is defined. (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
* (send_process): Be sure to free composition data.Kenichi Handa2004-09-291-0/+1
|
* (process_send_signal) [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]:Richard M. Stallman2004-08-221-4/+11
| | | | If there's no char for this signal, drop through and use system calls.
* (wait_reading_process_output): Rename fromKim F. Storm2004-08-201-18/+18
| | | | | | wait_reading_process_input. All uses changed. (wait_reading_process_output_1): Rename from wait_reading_process_input_1. All uses changed.
* * process.c (wait_reading_process_input): Clean up.Kim F. Storm2004-08-191-94/+66
| | | | | | Add wait_for_cell, wait_proc, and just_wait_proc args to avoid overloading `read_kbd' and `do_display' args. Change read_kbd arg to int. All callers changed.
* (process_send_signal): Use CDISABLE.Kim F. Storm2004-08-191-9/+1
|
* (Faccept_process_output): Add arg JUST-THIS-ONE;Kim F. Storm2004-08-171-8/+30
| | | | | | | forward to wait_reading_process_input via DO_DISPLAY arg. (wait_reading_process_input): If DO_DISPLAY < 0 for a process object, only process output from that process; also inhibit running timers if DO_DISPLAY==-2.
* (process_send_signal): Fix last change--useKim F. Storm2004-08-171-1/+9
| | | | _POSIX_VDISABLE instead of CVDISABLE when available.
* (process_send_signal) [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.Richard M. Stallman2004-08-161-10/+13
| | | | Do nothing if the character is CVDISABLE.
* (read_process_output): Use whole read buffer.Kim F. Storm2004-08-011-6/+6
| | | | Don't trigger adaptive read buffering on errors.
* Fixes for Ctrl-G support on carbon, replacing old timeout based pollingSteven Tamm2004-07-191-3/+4
| | | | | | | | | | | | | | with alarm based polling. mac.c (sys_select): Redo sys_select to use alarm-based polling instead of 1 sec timeouts (like solaris). macterm.c (x_make_frame_visible): Comment in polling on frame creation. keyboard.c: Undef SIGIO on Carbon atimer.c (alarm_signal_handler): Call alarm handlers after scheduling. eval.c (Feval): Remove quit_char test process.c (wait_reading_process_input): Remove clearing stdin for select call on process input
* Comment change.Richard M. Stallman2004-06-131-0/+2
|
* (Fdelete_process): Undo 2004-05-28 change.Kim F. Storm2004-06-061-28/+11
| | | | | | | | | | Instead, call status_notify also for network process. (status_message): Use process instead of status as arg. Give messages "deleted" or "connection broken by remote peer" for an exited network process. (status_notify): Change call to status_message. (read_process_output): Increase readmax to 4096. Do not increase buffer size for datagram channels (default is now large enough).
* process.c (Fdelete_process): Do not call remove_process.Noah Friedman2004-05-281-1/+12
|
* (wait_reading_process_input): Check connect_wait_maskKim F. Storm2004-05-251-1/+2
| | | | | before actually accepting connection in case it has already been accepted due to recursion.
* (wait_reading_process_input): Make reentrant.Kim F. Storm2004-05-131-3/+4
| | | | | Make Available and Connecting non-static. Save and restore value of waiting_for_user_input_p.
* (read_process_output): Grow decoding_buf when needed;Kim F. Storm2004-05-111-0/+4
| | | | this could cause a crash in allocate_string and compact_small_strings.
* (Fstart_process): Fix docstring.Juanma Barranquero2004-05-101-2/+2
|
* (Fwaiting_for_user_input_p, Fmake_network_process)Juanma Barranquero2004-05-081-33/+33
| | | | | | | | | | (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering): Fix spelling of Emacs on docstring. (Fset_process_coding_system, Fprocess_coding_system) (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p): Make argument names match their use in docstring. (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process): Fix docstring.
* (wait_reading_process_input): Don't do adaptive readKim F. Storm2004-02-061-1/+1
| | | | buffering if waiting for a specific process.
* * process.c (sigchld_handler): Add comment about not calling mallocJan Djärv2004-01-271-1/+4
|
* (sigchld_handler): Set synch_process_termsigJan Djärv2004-01-261-12/+1
| | | | if terminated by a signal. synch_process_death setting removed.
* (wait_reading_process_input) [SYNC_INPUT]: Check interrupt_input_pending.Stefan Monnier2004-01-211-0/+4
|
* (wait_reading_process_input): Lisp_Object/int mixup.Stefan Monnier2004-01-201-2/+2
|
* (read_process_output): Only activate adaptiveKim F. Storm2004-01-061-2/+2
| | | | buffering if we read less than 256 bytes at a time.
* (ADAPTIVE_READ_BUFFERING): New conditional.Kim F. Storm2004-01-011-35/+164
| | | | | | | | | | | | | | | | | | | | | (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX) (READ_OUTPUT_DELAY_MAX_MAX): New constants. (process_output_delay_count, process_output_skip): New vars. (Vprocess_adaptive_read_buffering): New variable. (make_process): Initialize adaptive read buffering members. (Fstart_process): Set adaptive_read_buffering member. (deactivate_process): Cleanup adaptive read buffering. (wait_reading_process_input): Temporarily omit delayed subprocesses from the set of file descriptors to read from; adjust the select timeout if we skipped any subprocesses. (read_process_output): Increase adaptive read buffering delay if we read less than a full buffer; reduce delay when we read a full buffer. (send_process): Simplify using local Lisp_Process var. Reset adaptive read buffering delay after write. (init_process): Initialize process_output_delay_count and process_output_skip. (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
* Remove period at end of error message.Jan Djärv2003-11-161-1/+1
|
* (send_process): Delete unused temp_buf.Kenichi Handa2003-09-271-3/+0
|
* (set_socket_option): Fix :bindtodevice option.Kim F. Storm2003-09-231-16/+31
| | | | | | (Fset_network_process_option): Update process contact list when setting option succeeds. (Fmake_network_process): Doc fix.
* (Fnetwork_interface_info): UseDave Love2003-09-231-4/+4
| | | | HAVE_STRUCT_IFREQ... macros.
* (Fnetwork_interface_info): Fix type error.Dave Love2003-09-181-4/+4
| | | | | (Fnetwork_interface_list): Doc fix. (read_process_output, read_process_output): Delete unused var.
* (Fnetwork_interface_list, Fnetwork_interface_info):Kim F. Storm2003-09-171-9/+11
| | | | | | | | | Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns. (Fnetwork_interface_info): Check that ifreq struct has required fields before accessing them; this requires that those fields are defined as macros, which may be too restrictive on some platforms, but it is better than failing on other platforms. (syms_of_process): Only defsubr above fns when included.