aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* * process.c: Reapply 2006-08-01 change.Chong Yidong2006-08-051-6/+12
|
* * process.c: Revert last change.Chong Yidong2006-08-031-12/+6
|
* (wait_reading_process_output_unwind): New function.Kim F. Storm2006-08-011-4/+12
| | | | | | Restores waiting_for_user_input_p to saved value. (wait_reading_process_output): Unwind protect waiting_for_user_input_p instead of save/restore old value on stack.
* Doc fix.Chong Yidong2006-07-101-2/+2
|
* 2006-06-01 Michaël Cadilhac <michael.cadilhac@lrde.org>Kim F. Storm2006-06-011-8/+57
| | | | | | | | | | | | | (deleted_pid_list): New variable to store the pids of deleted processes. Declare it only if SIGCHLD is defined. (init_process): Initialize it. (syms_of_process): Staticpro it. (Fdelete_process): Add pid of the deleted process to it. Check after the addition and before the kill if the process is already stopped, in which case it is deleted from the list and not killed. (sigchld_handler): Define it only if SIGCHLD is. Search the process that signaled Emacs in `deleted_pid_list' before `Vprocess_alist'. Original idea by Stefan Monnier.
* (select_wrapper): Add wrapper around select to work aroundKim F. Storm2006-05-311-0/+19
| | | | | "incomplete backtrace" bug in gdb 5.3, when emacs is stopped inside select called from wait_reading_process_output.
* (setup_process_coding_systems): Use system_eol_typeKenichi Handa2006-05-081-0/+12
| | | | | | for encoding if eol_type is not yet decided. (read_process_output): Likewise. (send_process): Likewise.
* (conv_lisp_to_sockaddr): Fix previous change.Richard M. Stallman2006-04-131-5/+8
|
* (Fprocess_send_eof): Abort if fail to open null device.Richard M. Stallman2006-04-121-0/+2
|
* (conv_lisp_to_sockaddr): If FAMILY unknown, just return.Richard M. Stallman2006-04-121-1/+4
|
* * process.h (struct Lisp_Process): Replace Lisp_Objects `pid',Stefan Monnier2006-04-081-46/+50
| | | | | | | | | | | | | | | | | | `raw_status_high', and `raw_status_low' with plain integers, and move them to the end of the structure. * alloc.c (allocate_process): Use PSEUDOVECSIZE to initialize the pseudovector's size field so only the Lisp_Object fields get GC'd. * process.c (update_status, make_process, Fdelete_process) (Fprocess_status, list_processes_1, start_process_unwind) (create_process, Fmake_network_process, server_accept_connection) (wait_reading_process_output, send_process, Fprocess_running_child_p) (process_send_signal, proc_encode_coding_system, Fprocess_send_eof) (sigchld_handler, status_notify): Adjust to new non-Lisp fields for `pid' and `raw_status'. (Fprocess_id, Fsignal_process): Same, and additionally use floats when representing PIDs that are larger than most-positive-fixnum.
* (Faccept_process_output): Fix to comply with lisp reference.Kim F. Storm2006-03-221-38/+36
| | | | | | Change arg "timeout" to "seconds" and allow both integer and float value. Change arg "timeout-msec" to "millisec" and interpret" as milliseconds rather than microseconds. Fix doc string accordingly.
* (Vprocess_adaptive_read_buffering): Doc fix.Romain Francoise2006-03-111-1/+1
|
* (Fmake_network_process): Init the process's mark.Stefan Monnier2006-02-251-1/+7
|
* Update years in copyright notice; nfc.Thien-Thi Nguyen2006-02-061-1/+1
|
* [HAVE_INTTYPES_H]: Include inttypes.h.YAMAMOTO Mitsuharu2006-01-121-3/+10
| | | | | | (ifflag_table): Fix typo (IFF_OACTIV -> IFF_OACTIVE). (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ_IFR_NETMASK macro. Also try member ifr_addr when getting netmask.
* (Fmake_network_process): Use AF_INET instead ofKim F. Storm2006-01-051-1/+1
| | | | AF_UNSPEC when AF_INET6 is not defined.
* [WINDOWSNT]: Undef AF_INET6 to disable IPv6 support for w32.Eli Zaretskii2006-01-041-0/+8
|
* Add IPv6 support.Kim F. Storm2006-01-041-20/+134
| | | | | | | | | | | | | | | | (Qipv4, Qipv6): New vars. (syms_of_process): Intern and staticpro them. (Fformat_network_address): Handle 9 or 8 element vector as IPv6 address with or without port number. Handle 4 element vector as IPv4 address without port number. (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size) (conv_lisp_to_sockaddr): Handle IPv6 addresses. (Fmake_network_process): Use :family 'ipv4 and 'ipv6 to explicitly request that address family only. :family nil or omitted means to determine address family from the specified :host and :service. (server_accept_connection): Handle IPv6 addresses. (init_process): Add (:family ipv4) and (:family ipv6) sub-features. (ifflag_table): Add missing OpenBSD IFF_ flags.
* (Fnetwork_interface_info): Correctly terminate theAndreas Schwab2005-12-301-1/+1
| | | | loop over ifflag_table.
* (Fsignal_process): Recognize signal names with andKim F. Storm2005-11-081-30/+33
| | | | without SIG prefix, e.g. SIGHUP and HUP.
* * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correctDan Nicolaescu2005-09-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | type. * xterm.c (handle_one_xevent, handle_one_xevent): Likewise. * unexelf.c (fatal): Fix prototype. * term.c (fatal): Implement using varargs. * regex.c (re_char): Move typedef ... * regex.h (re_char): ... here. (re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes. * emacs.c (malloc_set_state): Fix return type. (endif): Fix type. * lisp.h (fatal): Add argument types. * dispextern.h (fatal): Delete prototype. * systime.h: (make_time): Prototype moved from ... * editfns.c (make_time): ... here. * editfns.c: Move systime.h include after lisp.h. * dired.c: * xsmfns.c: * process.c: Likewise. * alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook): Add parameter types. (__malloc_hook, __realloc_hook, __free_hook): Fix prototypes. (emacs_blocked_free): Change definition to match __free_hook. (emacs_blocked_malloc): Change definition to match __malloc_hook. (emacs_blocked_realloc): Change definition to match __realloc_hook.
* * xlwmenu.c (find_next_selectable):Dan Nicolaescu2005-09-271-1/+0
| | | | | | | | | | | | | | | | | | | | | | (find_prev_selectable): Add missing parameter declarations. * xfaces.c (lookup_derived_face): Add parameter type. * xdisp.c (cursor_row_fully_visible_p): Add parameter type. * marker.c (verify_bytepos): Add parameter type. * process.c (get_operating_system_release): Move prototype ... * systime.h (get_operating_system_release): ... here. * xterm.c (set_vertical_scroll_bar): Move prototype ... * xterm.h: ... here. * fns.c (internal_equal, seed_random): Fix prototypes. (internal_equal): Add missing parameter.
* (create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]:YAMAMOTO Mitsuharu2005-09-211-0/+8
| | | | Setup slave tty options before forking.
* (deactivate_process, status_notify, read_process_output)Kim F. Storm2005-08-151-28/+37
| | | | | | | | | | | (update_status, status_convert, decode_status, allocate_pty) (make_process, remove_process, list_processes_1) (create_process_1, unwind_request_sigio, read_process_output) (send_process, keyboard_bit_set): Declare static. (Fdelete_process): Simplify. Pass process to status_notify, so we don't try to read output from it. (status_notify): New arg deleting_process--don't try to read output from that process.
* Update years in copyright notice; nfc.Thien-Thi Nguyen2005-08-071-2/+3
|
* 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
|