1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-01 09:51:22 -08:00
emacs/lisp/eshell
Jim Porter 8e46f44ea0 Improve Eshell's behavior when waiting for processes
This has a few benefits.  First, it fixes a race condition when killing
old processes in 'eshell-command'.  Second, the "wait" built-in command
is now more useful.  Finally, killing processes when exiting Eshell (via
'eshell-round-robin-kill') should be much faster.

* lisp/eshell/esh-proc.el (esh-opt): Require.
(eshell-wait-for-process): Make obsolete in favor of...
(eshell-wait-for-processes): ... this.  Accept a timeout and support
PIDs.  Update callers.
(eshell/wait): New implementation accepting -t/--timeout.
(eshell-round-robin-kill): Use 'eshell-wait-for-processes'.

* lisp/eshell/eshell.el (eshell-command): Use 'eshell-round-robin-kill'.

* doc/misc/eshell.texi (List of Built-ins): Document the new "wait"
behavior.

* etc/NEWS: Announce this change.
2024-07-09 17:28:32 -07:00
..
em-alias.el Make Eshell's "which" command extensible 2024-05-29 19:33:13 -07:00
em-banner.el Use 'esh-module-autoload' for Eshell modules' defgroups 2024-05-29 12:09:05 -07:00
em-basic.el Use 'esh-module-autoload' for Eshell modules' defgroups 2024-05-29 12:09:05 -07:00
em-cmpl.el Use 'esh-module-autoload' for Eshell modules' defgroups 2024-05-29 12:09:05 -07:00
em-dirs.el Be more efficient when buffering output in Eshell 2024-06-08 12:29:29 -07:00
em-elecslash.el Checkdoc fixes in eshell/*.el 2024-07-08 16:51:05 +02:00
em-extpipe.el Checkdoc fixes in eshell/*.el 2024-07-08 16:51:05 +02:00
em-glob.el Use 'esh-module-autoload' for Eshell modules' defgroups 2024-05-29 12:09:05 -07:00
em-hist.el Be more efficient when buffering output in Eshell 2024-06-08 12:29:29 -07:00
em-ls.el Be more efficient when buffering output in Eshell 2024-06-08 12:29:29 -07:00
em-pred.el Checkdoc fixes in eshell/*.el 2024-07-08 16:51:05 +02:00
em-prompt.el Ensure navigating by paragraphs in Eshell stops at prompts and paragraphs 2024-06-20 19:01:20 -07:00
em-rebind.el Use 'esh-module-autoload' for Eshell modules' defgroups 2024-05-29 12:09:05 -07:00
em-script.el ; * lisp/eshell/em-script.el (eshell-execute-file): Improve docstring. 2024-06-13 21:44:40 -07:00
em-smart.el Use 'esh-module-autoload' for Eshell modules' defgroups 2024-05-29 12:09:05 -07:00
em-term.el Use 'esh-module-autoload' for Eshell modules' defgroups 2024-05-29 12:09:05 -07:00
em-tramp.el Use 'esh-module-autoload' for Eshell modules' defgroups 2024-05-29 12:09:05 -07:00
em-unix.el Improve correctness of 'eshell-quote-argument' 2024-06-09 15:28:40 -07:00
em-xtra.el Use 'esh-module-autoload' for Eshell modules' defgroups 2024-05-29 12:09:05 -07:00
esh-arg.el Improve correctness of 'eshell-quote-argument' 2024-06-09 15:28:40 -07:00
esh-cmd.el Improve Eshell's behavior when waiting for processes 2024-07-09 17:28:32 -07:00
esh-ext.el Fix execution of MS-Windows app execution aliases in Eshell 2024-07-07 20:25:09 -07:00
esh-io.el Be more efficient when buffering output in Eshell 2024-06-08 12:29:29 -07:00
esh-mode.el Limit the amount of text we examine when looking for password prompts 2024-06-20 17:37:19 -07:00
esh-module.el Checkdoc fixes in eshell/*.el 2024-07-08 16:51:05 +02:00
esh-opt.el ; Compute the list of symbols for 'eshell-eval-using-options' once 2024-02-13 12:27:38 -08:00
esh-proc.el Improve Eshell's behavior when waiting for processes 2024-07-09 17:28:32 -07:00
esh-util.el Checkdoc fixes in eshell/*.el 2024-07-08 16:51:05 +02:00
esh-var.el Be more efficient when buffering output in Eshell 2024-06-08 12:29:29 -07:00
eshell.el Improve Eshell's behavior when waiting for processes 2024-07-09 17:28:32 -07:00