aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32proc.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (sys_select): Always wait on interrupt_handle, so thatRichard M. Stallman1998-05-151-2/+22
| | | | user can break out of `accept-process-input' (for instance) by typing C-g.
* (sys_kill): Fix indenting.Geoff Voelker1998-04-231-1/+1
|
* (w32_executable_type): Properly cast dos_header whenGeoff Voelker1998-04-171-8/+100
| | | | | | | | | | | | | | making size comparison. (sys_spawnve): Update comments. (sys_select): Ignore children dead children with pending input. Delay sending SIGCHLD until all output has been read. (sys_kill): Sleep to allow focus change events to propagate. Use TerminateProcess on Win95. (int_from_hex, enum_locale_fn, Fw32_get_valid_locale_ids): New functions. (Vw32_valid_locale_ids): New variable. (Fw32_set_current_locale): Send message to input thread. (syms_of_ntproc): defsubr Sw32_get_valid_locale_ids.
* Delete incorrect prototype of report_file_error.Karl Heuer1998-04-091-1/+1
|
* Include w32heap.h.Geoff Voelker1997-09-031-207/+692
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (Vw32_start_process_share_console, Vw32_generate_fake_inodes, Vw32_get_true_file_attributes, Qhigh, Qlow, process_dir): New variables. (find_child_console, set_process_dir, Fw32_short_file_name, Fw32_long_file_name, Fw32_set_process_priority, Fw32_get_locale_info, Fw32_get_current_locale_id, Fw32_get_default_local_id, Fw32_set_current_locale): New functions. (CORRECT_DIR_SEPS): New macro. (create_child): Create a new console if subprocs don't share parent's. (reap_subprocess): Don't check for dos subprocesses. Add debug support. (sys_wait): Ignore socket child_procs. Check for quit while waiting. (w32_executable_type): Renamed from w32_is_dos_binary. Check for dos and Cygnus executables. (sys_spawnve): Always use cmdproxy if spawning a dos app. Use quotes to quote arguments for Cygnus apps, backslashes otherwise. Handle escape characters. Escape quotes at start and end, too. (sys_select): Treat null timeout as infinite. Add handles of child processes. Loop over handles round robin to ensure fairness. (sys_kill): Send ctrl-break and ctrl-c keystrokes to subprocesses on SIGINT if not sharing consoles, otherwise generate ctrl-break event. On other termination signals, send WM_QUIT message to Win95 apps and WM_CLOSE to NT apps. (syms_of_ntproc): Intern new symbols. defsubr new functions. DEFVAR new variables.
* Change all uses of win95, winnt, and win32Geoff Voelker1997-01-201-3/+3
| | | | | | | into Windows 95, Windows NT, and W32, respectively. Expand "win" substring in variables referring to Microsoft Windows constructs into "windows". Canonicalize header comments to use same terminology.
* (compare_env, merge_and_sort_env): New functions.Geoff Voelker1997-01-041-8/+58
| | | | | (sys_spawnve): Sort environment variables for subprocess. (ppid_env_var_buffer): Variable deleted.
* Use new names for w32 filesGeoff Voelker1996-11-191-1/+1
|
* Change identifiers of the form win32* to w32*.Geoff Voelker1996-11-191-26/+26
|
* (Vwin32_start_process_show_window): New variable.Richard M. Stallman1996-08-311-1/+14
| | | | | (create_child): Conditionally force subprocess to hide window. (syms_of_ntproc): DEFVAR it.
* (restrict_dos_process): Variable deleted.Richard M. Stallman1996-06-121-6/+3
| | | | (sys_spawnve): Restrict DOS processes on NT as well.
* (restrict_dos_process): Renamed from can_run_dos_process.Richard M. Stallman1996-06-121-4/+5
| | | | (sys_spawnve): Refer to restrict_dos_process.
* (Fwin32_has_winsock, Fwin32_unload_winsock) [HAVE_SOCKETS]: New functions.Richard M. Stallman1996-06-081-0/+73
| | | | (syms_of_ntproc) [HAVE_SOCKETS]: defsubr them.
* (sys_kill): Don't try to terminate a DOS process.Richard M. Stallman1996-06-071-3/+5
|
* (Vwin32_downcase_file_names): New variable.Richard M. Stallman1996-06-031-0/+9
| | | | (syms_of_win32fns): DEF_VAR it.
* (Vwin32_pipe_read_delay): New var.Karl Heuer1996-05-171-0/+91
| | | | | | | (can_run_dos_process, dos_process_running): New vars. (win32_is_dos_binary): New function. (reap_subprocess, sys_spawnve): Use them. (syms_of_ntproc): Defvar and initialize Vwin32_pipe_read_delay.
* (Vwin32_quote_process_args): New variable.Richard M. Stallman1996-05-101-10/+33
| | | | | (sys_spawnve): If Vwin32_quote_process_args, quote the args. (syms_of_ntproc): Set up Lisp variable.
* Include config.h after CRT headers. Include fcntl.h.Geoff Voelker1996-05-031-346/+523
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (child_process, MAX_CHILDREN, CHILD_ACTIVE): Moved to nt.h. (DebugPrint): New macro. (new_child): Create input event structures for child processes. (delete_child): New function. (reader_thread): Return nonzero upon failure. Use _sys_read_ahead. (create_child): Add child_process and parent PID arguments. Don't create input event or thread structures here. Fixup Win95 negative process IDs. (register_child): Don't set consumed event; instead, set thread status so that select will release it. (remove_child): Renamed to reap_process. Only free resources of synchronous children. (win32_wait): Renamed to sys_wait. Sanity check to make sure handle to subprocess exists. Don't reclaim thread resources here. (win32_spawnve): Renamed to sys_spawnve. Check for proper wait mode first thing. Convert command name to DOS format. Quote whitespace and quotes in arguments to subprocess. Use alloca instead of malloc. If max subprocesses, return EAGAIN in hopes of another completing. (sys_select): Add support for socket input. Remove dead code. Check input from children fairly. (sys_select) [HAVE_TIMEVAL]: Remove conditional check and code. (win32_kill_process): Renamed to sys_kill. Use OpenProcess to terminate process. (prepate_standard_handles, reset_standard_handles): Moved here from nt.c.
* Update FSF's address in the preamble.Erik Naggum1996-01-151-15/+16
|
* Comment fixes.Karl Heuer1996-01-051-1/+1
|
* (win32_wait): fixed bad synch_process_retcodeGeoff Voelker1996-01-041-5/+24
| | | | and initialized synch_process_death if signaled.
* [HAVE_NTGUI] (create_child): Pass handles to children.Geoff Voelker1995-11-071-2/+39
| | | | [HAVE_NTGUI1] (sys_select): Support alternate keyboard handling.
* (win32_wait): Massage retval into what is expected in Unix.Richard M. Stallman1995-06-191-1/+10
|
* (win32_spawnve): Accept program names without executable suffixes.Richard M. Stallman1995-06-151-1/+21
|
* Include config.h before stdio.h.Geoff Voelker1995-06-101-2/+2
|
* (win32_wait): Reap synchronous subprocesses, and placeKarl Heuer1995-04-121-12/+36
| | | | return code in synch_process_retcode.
* Initial revisionRichard M. Stallman1994-11-141-0/+780