Kenichi Handa
c758053843
(Fstart_process, Fopen_network_stream): Do not perform
...
character code conversion if enable-multibyte-characters is nil.
1997-02-27 07:48:21 +00:00
Karl Heuer
0fa1789e78
Include charset.h and coding.h.
...
(proc_decode_coding_system, proc_encode_coding_system): New
variables.
(Fstart_process, create_process, Fopen_network_stream): Setup
coding systems for character code conversion.
(READ_CHILD_OUTPUT): New macro.
(read_process_output): Perform character code conversion of a
process output.
(send_process): Perform character code conversion of a text sent
to a process.
(Fset_process_coding_system, Fprocess_coding_system): New
functions.
(syms_of_process): Handle them.
1997-02-20 06:53:55 +00:00
Richard M. Stallman
ececcbec2a
Include blockinput.h.
...
(create_process): Block input around the fork.
1996-12-30 01:26:08 +00:00
Richard M. Stallman
dd13022778
(read_process_output, exec_sentinel):
...
Call Fmatch_data with new explicit arguments.
1996-12-19 06:41:48 +00:00
Richard M. Stallman
f3e6605c82
(send_process) [EMACS_HAS_USECS]:
...
When we wait for the buffer to clear, wait just .02 second.
1996-12-18 16:37:52 +00:00
Richard M. Stallman
4da2f5be4a
(status_notify): Test p->infd > 0
...
before each call to read_process_output.
(read_process_output): Handle match data properly in recursive calls.
(exec_sentinel): Likewise.
1996-12-08 21:36:42 +00:00
Richard M. Stallman
0ad61fe7d7
(status_notify): Update p->tick again
...
just before running the sentinel, in case it dies.
1996-10-26 16:01:03 +00:00
Karl Heuer
6df54671fd
Replaced symbol BSD with BSD_SYSTEM.
1996-09-17 03:43:54 +00:00
Richard M. Stallman
743c658604
(stream_process): Variable deleted.
...
(syms_of_process): staticpro deleted.
1996-09-16 05:09:06 +00:00
Richard M. Stallman
99c1aeca5e
(create_process): Test HAVE_SETPGID for using setpgid.
1996-09-04 16:27:55 +00:00
Richard M. Stallman
3c0ee47b71
(create_process_1, sigchld_handler) [POSIX_SIGNALS]:
...
Don't reestablish handler.
1996-09-04 15:07:07 +00:00
Richard M. Stallman
99153b9e0e
(create_process): Undo previous change.
1996-09-03 04:13:20 +00:00
Richard M. Stallman
de282a0553
(Fprocess_contact): New function.
...
(Fopen_network_stream): Store a cons cell in childp.
(NETCONN_P): Use GC_CONSP.
(list_processes_1): Use new childp format.
1996-09-01 23:18:03 +00:00
Richard M. Stallman
474038150f
(create_process): Test defined (TIOCSCTTY)
...
and defined (HAVE_SETSID) instead of DONT_REOPEN_PTY.
1996-09-01 21:56:24 +00:00
Karl Heuer
6ec8bbd20d
Change all references from point to PT.
1996-09-01 19:15:05 +00:00
Richard M. Stallman
6044e593a6
(send_process): GCPRO object.
1996-08-22 02:57:09 +00:00
Karl Heuer
ad4bf9a061
(create_process_1, sigchld_handler): Undo previous change.
1996-07-16 22:33:09 +00:00
Karl Heuer
c1fc797324
(create_process_1, sigchld_handler):
...
Don't reinstall sig handler if POSIX_SIGNALS.
1996-07-15 21:51:25 +00:00
Karl Heuer
e07d54499f
(wait_reading_process_input) [hpux]: Workaround for
...
annoying messages.
1996-07-13 17:50:47 +00:00
Richard M. Stallman
89d7280dcf
Comment change.
1996-06-11 19:50:32 +00:00
Richard M. Stallman
0b75e9a419
(wait_reading_process_input): Move the O_NONBLOCK and
...
O_NDELAY conditionals out of the EWOULDBLOCK conditional.
1996-06-11 19:48:13 +00:00
Richard M. Stallman
e9bf058bce
(create_process): Add DONT_OPEN_PTY conditional.
1996-06-09 20:15:20 +00:00
Richard M. Stallman
bff3ed0ac3
(Fopen_network_stream)[WINDOWSNT]: Ensure Windows
...
socket library is loaded if available.
1996-06-08 00:14:31 +00:00
Richard M. Stallman
7795ff9bc0
(Fopen_network_stream): Set process infd to inch.
...
(create_process, read_process_output, Fsignal_process) [WINDOWSNT]:
Remove conditional NT code.
1996-04-26 19:55:27 +00:00
Richard M. Stallman
f854a00b99
(wait_reading_process_input, both definitions):
...
If wait_for_cell, don't call timer_check, and use
detect_input_pending instead of detect_input_pending_run_timers.
1996-04-23 20:32:33 +00:00
Richard M. Stallman
1861b21427
(wait_reading_process_input) [!subprocesses]:
...
Get rid of the loop around the detect_input_pending call.
1996-04-15 19:12:01 +00:00
Richard M. Stallman
0a65b03282
(wait_reading_process_input) [!subprocesses]: Handle
...
the case of READ_KBD being a cons cell. Retry the timer check
after a timer fired. (All of these make this definition
consistent with the one that supports async subprocesses.)
(wait_reading_process_input, both definitions):
Use plain detect_input_pending just before the select call.
1996-04-14 17:45:31 +00:00
Richard M. Stallman
3d6163992d
(wait_reading_process_input, both definitions):
...
Don't call detect_input_pending; use detect_input_pending_run_timers.
1996-04-12 06:02:54 +00:00
Richard M. Stallman
4abca5e732
(wait_reading_process_input): Don't call
...
wait_reading_process_input_1 if time_limit is -1.
1996-04-03 19:30:03 +00:00
Richard M. Stallman
c573ae8ec0
(wait_reading_process_input_1): New (empty) function.
...
(wait_reading_process_input): Call wait_reading_process_input_1.
If timer_check runs some timers, retry it.
1996-03-27 02:35:15 +00:00
Richard M. Stallman
38f17cb22e
(wait_reading_process_input): Eliminate bogus test
...
that was trying to check read_kbd and failing.
1996-03-22 22:06:10 +00:00
Richard M. Stallman
501ebe0e34
(wait_reading_process_input): Extract the number from read_kbd with XINT.
1996-03-19 23:43:50 +00:00
Karl Heuer
f694e5d271
(wait_reading_process_input) [! subprocesses]: Run
...
timers and redisplay if they were run, like the code for systems
which support subprocesses does.
1996-03-14 05:20:44 +00:00
Richard M. Stallman
bae8d1375f
[!subprocesses] (wait_reading_process_input):
...
Port the timer changes from the other wait_reading_process_input.
1996-03-10 14:38:37 +00:00
Richard M. Stallman
5de50bfbba
(wait_reading_process_input):
...
Redisplay after timer_check if timers were actually run.
1996-03-08 03:51:46 +00:00
Richard M. Stallman
5d6c2aa300
(wait_reading_process_input):
...
Pass DO_DISPLAY to detect_input_pending_run_timers.
(Fopen_network_stream): Set immediate_quit around gethostbyname.
1996-03-05 17:33:27 +00:00
Richard M. Stallman
e643c5beab
(wait_reading_process_input): Use getpid when generating SIGIO.
1996-03-03 05:34:59 +00:00
Richard M. Stallman
0f2ee0c100
(Fopen_network_stream): Set immediate_quit for the connect.
1996-02-26 00:07:45 +00:00
Karl Heuer
6ed6233b68
(wait_reading_process_input):
...
Pass new arg to swallow_events.
(wait_reading_process_input): If read_kbd is 1,
use detect_input_pending_run_timers instead of detect_input_pending.
1996-02-21 21:08:31 +00:00
Erik Naggum
ada9a4fdf9
(Faccept_process_output): Accept sub-second timeouts.
1996-02-21 01:45:21 +00:00
Richard M. Stallman
8777fbe2bb
(Fopen_network_stream): Use sizeof, not strlen, for numeric_addr.
1996-02-11 19:26:25 +00:00
Richard M. Stallman
81c63241a9
(remove_process): Don't unlink the process marker.
1996-02-08 04:19:31 +00:00
Karl Heuer
7968cc2d4b
(sigchld_handler): Use cleaner end-of-list test.
1996-02-05 20:32:20 +00:00
Richard M. Stallman
c0239a0b8b
(wait_reading_process_input): If select times out,
...
return only if we had no timers to shorten the wait.
Don't shorten the wait for timers if time_limit is -1.
1996-02-01 20:35:59 +00:00
Richard M. Stallman
038328930d
(create_process): Set outchannel to be non-blocking.
1996-01-29 04:52:15 +00:00
Richard M. Stallman
fb4c362712
(wait_reading_process_input): Call timer_check
...
and shorten the inner delay if appropriate.
1996-01-29 04:50:16 +00:00
Karl Heuer
8db121c493
(wait_reading_process_input) [not subprocesses]: Do
...
not assume SELECT_TYPE is an int.
1996-01-24 21:21:07 +00:00
Erik Naggum
3b7ad313e0
Update FSF's address in the preamble.
1996-01-15 09:18:04 +00:00
Karl Heuer
4a127b3b17
(create_process): Restore the signal state
...
after vfork whether it succeeds or not.
1996-01-09 23:40:33 +00:00
Erik Naggum
4ee3e30977
(Fprocessp, Fget_buffer_process, Fdelete_process, Fprocess_status,
...
Fprocess_exit_status, Fprocess_id, Fprocess_name, Fprocess_command,
Fprocess_tty_name, Fset_process_buffer, Fprocess_buffer, Fprocess_mark,
Fset_process_filter, Fprocess_filter, Fset_process_sentinel,
Fprocess_sentinel, Fset_process_window_size, Fprocess_kill_without_query,
Faccept_process_output): Harmonize arguments with documentation.
1996-01-09 00:33:39 +00:00