all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* call-process blocks the active thread
@ 2017-09-08  3:00 Elias Mårtenson
  2017-09-08  3:56 ` Eric Abrahamsen
  2017-09-08  7:01 ` Eli Zaretskii
  0 siblings, 2 replies; 10+ messages in thread
From: Elias Mårtenson @ 2017-09-08  3:00 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 437 bytes --]

I was trying to use ‘call-process’ in a thread in order to not have to deal
with process buffers and the like while still being able to run an external
program in the background.

As it turns out, ‘call-process’ hangs all of Emacs while the external
program is run.

To reproduce, simply type M-: (make-thread (lambda () (call-process "sleep"
nil nil nil "2")))

This will hang Emacs for 2 seconds.

Regards,
Elias

[-- Attachment #2: Type: text/html, Size: 575 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-09-08 18:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-08  3:00 call-process blocks the active thread Elias Mårtenson
2017-09-08  3:56 ` Eric Abrahamsen
2017-09-08  7:01 ` Eli Zaretskii
2017-09-08  7:45   ` Stefan Monnier
2017-09-08  8:06     ` Eli Zaretskii
2017-09-08 10:36   ` Elias Mårtenson
2017-09-08 11:27     ` Philipp Stephani
2017-09-08 12:16     ` Eli Zaretskii
2017-09-08 16:12       ` Tom Tromey
2017-09-08 18:43         ` Tom Tromey

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.