all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Query about Emacs Process API | Asynchronous processes
@ 2020-07-04 22:42 Narendra Joshi
  2020-07-05 14:29 ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Narendra Joshi @ 2020-07-04 22:42 UTC (permalink / raw)
  To: help-gnu-emacs


Hi,

Reading through Emacs Lisp info manual, I found out
[[info:elisp#Asynchronous Processes][info:elisp#Asynchronous Processes]]
that it's possible to create an asynchronous process (let's ignore
network processes for now) without any command at all. For example,

#+begin_src emacs-lisp
(make-process :name "a-pty-process" :command (list nil) :buffer "*a-pty-process-buffer*")
#+end_src

This creates a process with a pseudo terminal. This process is shown by
`list-processes`

#+begin_src 
 Process ▼ PID Status Buffer TTY Thread Command 
a-pty-process   -2      run     *a-pty-process-buffer*    /dev/pts/1   Main         
#+end_src

^ The process ID is a negative number. It makes me think that there is
no real sub-process (OS level) yet. Is that true? If not, what is being
executed by the sub-process?

I am wondering what the use cases are that such a feature serves.   

Thanks,
-- 
Narendra Joshi



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

end of thread, other threads:[~2020-07-07 22:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-04 22:42 Query about Emacs Process API | Asynchronous processes Narendra Joshi
2020-07-05 14:29 ` Eli Zaretskii
2020-07-05 14:33   ` Narendra Joshi
2020-07-05 15:25     ` Stefan Monnier
2020-07-05 19:13       ` Narendra Joshi
2020-07-07 22:26         ` Narendra Joshi

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.