From: Thomas Hisch <thomas.hisch@ims.co.at>
To: Lars Ingebrigtsen <larsi@gnus.org>, Eli Zaretskii <eliz@gnu.org>
Cc: 48129@debbugs.gnu.org
Subject: bug#48129: 28.0.50; Per file-handle (stdin, stdout and stderr) process-connection-type variable
Date: Sat, 12 Jun 2021 16:23:29 +0200 [thread overview]
Message-ID: <65069cf7-6ac2-57d3-4430-b83f91d93b81@ims.co.at> (raw)
In-Reply-To: <87bl8b8eeh.fsf@gnus.org>
Hi,
On 6/12/21 14:18, Lars Ingebrigtsen wrote:
> Eli Zaretskii <eliz@gnu.org> writes:
>
>> If it's possible to solve your problem by using make-pipe-process, I'd
>> prefer such a solution. Introducing yet another obscure option to
>> make-process should best be avoided, IMO.
Yes I agree, if I could use make-pipe-process I would use it, but I
guess it doesn't work.
(let* ((stderr-buffer (get-buffer-create "*stderr*"))
(stderr-pipe-proc (make-pipe-process :name "stderr"
:buffer stderr-buffer))
(stdout-buffer (get-buffer-create "*temp*")))
(make-process
:name "isatty"
;; what do I want?
;; I want stdin to be connected to a pty but not stdout
:buffer stdout-buffer
:connection-type 'pty
:stderr stderr-pipe-proc
:command (list "/tmp/output-isatty.py")))
What have I tried:
* toggling the connection-type arguement doesn't have any impact on the
output of the python script, which is run as a subprocess.
* if a stderr argument is passed to make-process and the value is a the
pipe-process, then both stdin as well as stdout in the subprocess are
connected non-pty devices
* if a stderr argument is not passed to make-process, then both stdin as
well as stdout in the subprocess are connected to pty devices.
Can you tell me if I should use make-process/make-pipe-process in a
different way?
> This was a month ago, and there was no followup, so I'm going to go
> ahead and assume that the make-pipe-process workaround works (and that
> seems like a pretty composable solution to me, too), and I'm closing
> this bug report.
>
> If there's more to be done here, please respond to the debbugs address
> and we'll reopen.
>
sry for the late reply. Unfortunately make-pike-process doesn't work for
me, or at least I don't know how I should use it.
Best regards,
Thomas
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly prohibited.
IMS Nanofabrication GmbH FN: 208021 p, FB-Gericht: Wien; Sitz: Schreygasse 3, 1020, Vienna (Austria),Tel. +43 1 214 48 94; E-Mail: imsoffice@ims.co.at; DVR-Nr: 0374369; www.ims.co.at
next prev parent reply other threads:[~2021-06-12 14:23 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-30 23:10 bug#48129: 28.0.50; Per file-handle (stdin, stdout and stderr) process-connection-type variable Thomas Hisch
2021-05-01 6:09 ` Eli Zaretskii
2021-05-02 10:19 ` Thomas Hisch
2021-05-07 19:46 ` Thomas Hisch
2021-05-15 7:23 ` Eli Zaretskii
2021-06-12 12:18 ` Lars Ingebrigtsen
2021-06-12 14:23 ` Thomas Hisch [this message]
2021-06-12 15:31 ` Eli Zaretskii
2021-06-12 16:49 ` Thomas Hisch
2021-06-12 15:48 ` Lars Ingebrigtsen
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=65069cf7-6ac2-57d3-4430-b83f91d93b81@ims.co.at \
--to=thomas.hisch@ims.co.at \
--cc=48129@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=larsi@gnus.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.
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.