[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Query about Emacs Process API | Asynchronous processes

From: Narendra Joshi
Subject: Query about Emacs Process API | Asynchronous processes
Date: Sun, 05 Jul 2020 00:42:22 +0200


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 

This creates a process with a pseudo terminal. This process is shown by

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

^ 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.   

Narendra Joshi

reply via email to

[Prev in Thread] Current Thread [Next in Thread]