[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#41788: 28.0.50; emacsclient -t doesn't work with vipe from moreutils
From: |
Andreas Schwab |
Subject: |
bug#41788: 28.0.50; emacsclient -t doesn't work with vipe from moreutils |
Date: |
Mon, 06 Jun 2022 18:25:00 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) |
On Jun 06 2022, Lars Ingebrigtsen wrote:
> open(STDIN, "</dev/tty") || die "reopen stdin: $!";
> open(OUT, ">&STDOUT") || die "save stdout: $!";
> close STDOUT;
> open(STDOUT, ">/dev/tty") || die "reopen stdout: $!";
That associates the process with /dev/tty, not the real terminal. But
the running Emacs process usually does not have a controlling terminal,
thus it cannot open /dev/tty. It needs to know the real terminal to be
able to open a tty frame on it.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."