aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Undo May 3 change.Richard M. Stallman2007-05-061-6/+6
|
* (Faccept_process_output): Revert 2006-03-22 change soRichard M. Stallman2007-05-051-6/+6
| | | | | | that the third argument once again is in microseconds (not milliseconds). This makes it compatible with Emacs 21 and earlier. Problem found by Henrik Rindlöw.
* (Fstart_process): Doc fix.Richard M. Stallman2007-04-231-3/+4
|
* (Fstart_process): Doc fix.Eli Zaretskii2007-04-231-6/+11
|
* (wait_reading_process_output) [HAVE_PTYS]:Kim F. Storm2007-03-291-10/+11
| | | | | | When EIO happens, clear channel from descriptor masks before raising SIGCHLD signal to avoid busy loop between read and sigchld_handler. (sigchld_handler): Remove sleep (2007-03-11 & 2007-03-26 changes).
* (Fformat_network_address): Return nil when theJuanma Barranquero2007-03-291-2/+14
| | | | argument vector contains invalid values.
* (Fformat_network_address): Make room in args array to format IPv6 addresses.Juanma Barranquero2007-03-271-2/+1
|
* (sigchld_handler): Delay by 1ms instead of 1s toSam Steingold2007-03-261-1/+1
| | | | alleviate sluggishness (the original problem is still fixed).
* revert the last patch to the original fix: sleep BEFORE the first waitSam Steingold2007-03-251-8/+8
| | | | it appears to be absolutely necessary for prevention of the load surge
* (Fmake_network_process) [HAVE_GETADDRINFO]: ClearYAMAMOTO Mitsuharu2007-03-201-3/+7
| | | | | immediate_quit before calling freeaddrinfo. Add BLOCK_INPUT around freeaddrinfo.
* (Fdelete_process): Properly handle deletion of first element ofChong Yidong2007-03-171-13/+16
| | | | | | deleted_pid_list. (create_process): Declare pid as pid_t. (sigchld_handler): Avoid busyloop.
* (sigchld_handler): Change type of pid to pid_t. Scan deleted_pid_listChong Yidong2007-03-171-5/+9
| | | | | explicitly to avoid using Fmember which don't know about mark bits and make_fixnum_or_float which may malloc. Reported by Andreas Schwab.
* tweak last patch: add comment and avoid the first sleepSam Steingold2007-03-111-7/+10
|
* (sigchld_handler): Sleep before wait3 to avoid a busyloop.Sam Steingold2007-03-111-0/+1
|
* (send_process_object): Check the process status andKenichi Handa2007-03-011-1/+9
| | | | signal an error if something is wrong.
* (send_process_object_unwind): New function.Kenichi Handa2007-02-231-12/+79
| | | | | | (send_process_object): New function. (Fprocess_send_region): Call send_process_object. (Fprocess_send_string): Likewise.
* Add 2007 to copyright years.Glenn Morris2007-01-211-1/+1
|
* (Fdelete_process, Fprocess_id, sigchld_handler): Copy PID into EMACS_INTEli Zaretskii2007-01-131-6/+12
| | | | to avoid GCC warnings.
* Fix typo in comment.Kim F. Storm2006-12-271-1/+1
|
* (Qsignal): Declare here.Kim F. Storm2006-12-191-2/+3
| | | | (syms_of_process): Intern or staticpro it.
* (Fsignal_process): Doc fix. Use XFLOAT_DATA to extract the process ID fromEli Zaretskii2006-12-091-2/+2
| | | | a Lisp float.
* (parse_signal): Use xstricmp instead of strcasecmp.Kim F. Storm2006-12-071-2/+2
| | | | (Fsignal_process): Don't use strncasecmp.
* (parse_signal): Rename macro from handle_signal.Kim F. Storm2006-12-041-40/+40
| | | | | (Fsignal_process): Also accept lower-case variants of signal names (to align with signal names generated by Emacs itself).
* (Qsignal): Declare extern.Kim F. Storm2006-12-041-3/+9
| | | | | | (syms_of_process): Don't intern/staticpro them here. (read_process_output): Abort if carryover < 0.
* (syms_of_process) <delete-exited-processes>: Doc fix.Juanma Barranquero2006-11-121-1/+1
|
* (list_processes_1): Run sentinels before removing deadKim F. Storm2006-10-031-2/+5
| | | | processes. Also remove `closed' network connections.
* (inhibit_sentinels): New variable.Richard M. Stallman2006-09-081-6/+15
| | | | | (exec_sentinel): Test inhibit_sentinels. (init_process): Initialize it.
* * 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.