1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-28 00:01:33 -08:00
Commit graph

353 commits

Author SHA1 Message Date
Kim F. Storm
e4984112de (Fprocess_status): Document connect and failed return values. 2002-03-01 00:00:21 +00:00
Kim F. Storm
dd2a17ab8b (Qconnect, Qfailed): New variables.
(syms_of_process): Intern and staticpro them.
[NON_BLOCKING_CONNECT]: New conditional.
(connect_wait_mask, num_pending_connects): New variables.
(status_message): Convert Qfailed status.
(Fopen_network_stream): Added support for non-blocking connect.
New optional args: filter, sentinel, non_blocking.  Doc updated.
[HAVE_GETADDRINFO, !HAVE_GETADDRINFO]:  Merged common code.
(deactivate_process): Handle pending non-blocking connect.
(wait_reading_process_input): Poll for status of non-blocking
connects.  Exec sentinel directly when connect succeeds.
(status_notify): Don't read process output if not yet connected.
2002-02-28 23:53:59 +00:00
Eli Zaretskii
fbb70ad9e6 (send_process): Set src_multibyte to 1 after the call
top setup_coding_system, not before the call.
2002-01-07 21:17:32 +00:00
Richard M. Stallman
8a2a6032da Test GNU_LINUX, not LINUX. 2001-12-11 22:20:20 +00:00
Paul Eggert
351e611fa8 (create_process): Use HAVE_WORKING_VFORK, not HAVE_VFORK. 2001-12-07 05:52:35 +00:00
Pavel Janík
b782650360 Update usage of CHECK_ macros (remove unused second argument). 2001-11-02 20:46:55 +00:00
Pavel Janík
3ecdf10095 (Fstart_process): Add usage to doc-string. 2001-11-02 07:01:10 +00:00
Pavel Janík
996fee11d7 Don't define max.
(create_process): Remove unused variable `buffer'.
2001-10-24 06:30:19 +00:00
Pavel Janík
fdb82f9337 Change doc-string comments to new style' [w/doc:' keyword]. 2001-10-20 20:56:10 +00:00
Ken Raeburn
f3fbd15535 Avoid (most) uses of XCAR/XCDR as lvalues, for flexibility in experimenting
with lisp system changes.
2001-10-16 09:09:51 +00:00
Pavel Janík
e2ba787b86 (process-inherit-coding-system-flag, get-buffer-process): Do not confuse
make-docfile with doc strings in comment.
2001-10-15 14:55:28 +00:00
Stefan Monnier
c0ec53ad99 Update calls to openp. 2001-10-12 03:37:43 +00:00
Gerd Moellmann
452294c2bf (send_process): Disable composition if from_byte < 0.
From Kenichi Handa <handa@etl.go.jp>.
2001-09-25 08:21:22 +00:00
Gerd Moellmann
4e6277d8de (sigchld_handler) [LINUX]: Don't return from
the signal handler at the end of the loop.
2001-09-24 09:18:19 +00:00
Gerd Moellmann
3fed8ad5b9 (sigchld_handler): Use GC_CONSP, GC_INTEGERP, GC_EQ
since this function can be called during GC.
2001-09-20 11:44:26 +00:00
Gerd Moellmann
99c78ce82d (read_process_output): Don't call signal_after_change
and update_compositions after insert_from_string_before_markers.
2001-05-16 16:05:20 +00:00
Gerd Moellmann
c88164fe6b (wait_reading_process_input): Call
record_asynch_buffer_change only if a timer really changed
buffers.
2001-04-25 15:12:49 +00:00
Eli Zaretskii
78c1afb681 (wait_reading_process_input) [!subprocesses]: Don't
reference waiting_for_user_input_p, it's not defined in the branch
without async subprocesses support.
2001-04-21 19:52:11 +00:00
Gerd Moellmann
a2fab450ed (wait_reading_process_input): Call
record_asynch_buffer_change after running timers, to make
read_key_sequence aware of buffer changes from under it.
2001-04-19 12:47:59 +00:00
Gerd Moellmann
989521fdbc (Fset_process_window_size): Fix a typo. 2001-03-08 11:32:17 +00:00
Gerd Moellmann
471f86b9a3 (Fset_process_filter): Don't crash if the input
file descriptor of PROCESS is closed.
(Fset_process_window_size): Likewise.
2001-03-07 12:55:29 +00:00
Gerd Moellmann
98423852fc (make_process): Use allocate_process. 2001-02-28 13:29:03 +00:00
Gerd Moellmann
3007ebfbc7 Call redisplay_preserve_echo_area with additional arg. 2001-01-16 12:42:22 +00:00
Gerd Moellmann
9baacf7602 (wait_reading_process_input): Check for pending
input when running timers.
2000-12-18 10:53:51 +00:00
Kenichi Handa
dd97db0618 (read_process_output): Don't run a filter if the code
decoder produces nothing but carryover.
2000-12-18 00:39:59 +00:00
Gerd Moellmann
926b7e5e3e (read_process_output): Make sure the process marker's
position is valid when the process buffer is changed in
after-change functions.  W3 does that.
2000-12-07 15:53:18 +00:00
Kenichi Handa
a92e4183e8 (send_process): If OBJECT is t, it means that the data
is from C string, but we should encode it.  Before calling
setup_raw_text_coding_system, be sure to flush out data by the
previous coding system.
2000-10-25 11:06:51 +00:00
Kenichi Handa
57bb5c37d7 (read_process_output): Cancel previous change. 2000-10-11 23:56:30 +00:00
Kenichi Handa
df3c11b907 (read_process_output): Fix previous change. Adjust multibyteness of
text to insert in a buffer by make_string_unibyte/multibyte instead of
Fstring_as_unibyte/multibyte.
2000-10-11 01:23:36 +00:00
Andreas Schwab
3316160629 (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
-1 after socket is closed, to fall through to error processing.
2000-10-09 20:01:10 +00:00
Dave Love
f6270f62c2 (Fopen_network_stream): Use HAVE_GAI_STRERROR. 2000-10-02 16:42:47 +00:00
Gerd Moellmann
70dbdb363e (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
gai_strerror.  Make sure xerrno is set if connect fails.  Improve
error recovery.
2000-09-30 13:51:15 +00:00
Gerd Moellmann
0daad115c4 (process_sent_to): New variable.
(send_process): Workaround for a crash on sparc-sun-solaris-2.6
with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
Declare more parameters volatile.
2000-09-21 11:48:48 +00:00
Kenichi Handa
d69864bf3e (read_process_output): Before inserting the decoded
text in the buffer, adjust the multibyteness.
2000-09-07 01:14:20 +00:00
Kenichi Handa
278bfdd615 (create_process): Don't setup raw-text coding here.
(Fopen_network_stream): Don't set coding->src_multibyte and
coding->dst_multibyte here.
(read_process_output): For process filter, return unibyte string
if default-enable-multibyte-characters is nil.
(send_process): If OBJECT is multibyte text, be sure to encoded it
by the specified coding system for the process.  Otherwise, setup
raw-text coding.
(init_process): Don't initialize default-process-coding-system
here.
2000-08-24 02:06:43 +00:00
Andrew Innes
3ec68006ee Include keyboard.h before frame.h.
[USE_CRT_DLL]: Remove unnecessary extern, which screws
up dllimport attributes.
(create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
screws up dllimport attributes.
2000-08-22 22:36:52 +00:00
Kenichi Handa
082a1df2db *** empty log message *** 2000-08-04 05:53:39 +00:00
Kenichi Handa
ed7a4b2d60 (read_process_output): Big simplification. Handle
composition and post-read-conversion of coding system correctly.
(send_process): Handle composition correctly.
2000-08-04 02:26:32 +00:00
Ken Raeburn
b8c2455611 * process.c (Fopen_network_stream): Turn off atimers for duration of call to
connect.  (Patch from Gerd.)
2000-06-24 06:06:53 +00:00
Gerd Moellmann
f22ac298de (toplevel) [UNIX98_PTYS]: Include stdlib.h. 2000-05-20 15:54:05 +00:00
Kenichi Handa
a4a37e652d (Fstart_process): GCPRO current_dir before calling
Ffind_operation_coding_system.  Encode arguments here.
(create_process): Don't encode arguments here.  Setup
src_multibyte and dst_multibyte members of struct coding.
(read_process_output): Setup src_multibyte and dst_multibyte
members of struct coding.  If the output is to multibyte buffer,
always decode the output of the process.  Adjust the
representation of 8-bit characters to the multibyteness of the
output.
(send_process): Setup coding->src_multibyte according to the
multibyteness of the source.
2000-05-20 00:04:37 +00:00
Gerd Moellmann
1fb0098cc6 (send_process): Add a hint that the function
can call Lisp code to its comment.
2000-03-15 19:58:03 +00:00
Gerd Moellmann
4dd8a783b3 (send_process): Remove local variable `procname' that
might become invalid when a GC happens.  Instead, access the
process name slot directly.
2000-03-06 12:41:53 +00:00
Gerd Moellmann
e12da451f5 (wait_reading_process_input): Remove busy-cursor code. 2000-02-25 13:30:07 +00:00
Gerd Moellmann
3433b6bdab (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
Workaround for FreeBSD bug.  Flush output queue after EAGAIN in
write(2).
2000-02-15 10:27:23 +00:00
Gerd Moellmann
4cf3fa0818 (Fopen_network_stream) [POLL_FOR_INPUT]: Register
unwind function to undo the effect of stopping atimers.
2000-02-12 13:12:17 +00:00
Dave Love
8c983bf257 (Fstart_process): Doc fix. 2000-02-01 15:01:28 +00:00
Gerd Moellmann
30904ab7d1 (toplevel): Include atimer.h.
(create_process_1): Rewritten.
(create_process): Use atimers instead of alarm.
(wait_reading_process_input) [hpux]: Turn atimers off instead
of turning off SIGALRM.
(wait_reading_process_input): Turn off atimers instead off
calling stop_polling.
2000-01-25 15:56:42 +00:00
Kenichi Handa
1c89844b12 (read_process_output): Fix the args CHARPOS and LENINS
to signal_after_change.
1999-12-29 00:57:25 +00:00
Kenichi Handa
f9b537ecb3 (read_process_output): Fix the arg FROM to
update_compositions.
1999-12-24 01:06:50 +00:00