From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Query about Emacs Process API | Asynchronous processes
Date: Sun, 05 Jul 2020 17:29:33 +0300 [thread overview]
Message-ID: <83h7umt4qa.fsf@gnu.org> (raw)
In-Reply-To: <87r1tqyka9.fsf@gmail.com> (message from Narendra Joshi on Sun, 05 Jul 2020 00:42:22 +0200)
> From: Narendra Joshi <narendraj9@gmail.com>
> Date: Sun, 05 Jul 2020 00:42:22 +0200
>
> #+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?
From the ELisp manual:
:command COMMAND
Use COMMAND as the command line of the process. The value
should be a list starting with the program’s executable file
name, followed by strings to give to the program as its
arguments. If the first element of the list is ‘nil’, Emacs
opens a new pseudoterminal (pty) and associates its input and
output with BUFFER, without actually running any program; the
rest of the list elements are ignored in that case.
next prev parent reply other threads:[~2020-07-05 14:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-04 22:42 Query about Emacs Process API | Asynchronous processes Narendra Joshi
2020-07-05 14:29 ` Eli Zaretskii [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83h7umt4qa.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).