emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#20555: closed (Emacs 24.2 vs 24.4 on Solaris: M-x


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#20555: closed (Emacs 24.2 vs 24.4 on Solaris: M-x shell and "tty => not a tty")
Date: Thu, 11 Jun 2015 23:49:02 +0000

Your message dated Thu, 11 Jun 2015 16:48:10 -0700
with message-id <address@hidden>
and subject line Re: Emacs 24.2 vs 24.4 on Solaris: M-x shell and "tty => not a 
tty"
has caused the debbugs.gnu.org bug report #20555,
regarding Emacs 24.2 vs 24.4 on Solaris: M-x shell and "tty => not a tty"
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
20555: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20555
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: Re: Emacs 24.2 vs 24.4 on Solaris: M-x shell and "tty => not a tty" Date: Mon, 11 May 2015 23:08:34 -0700 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0
[moving this to bug-gnu-emacs, so that it gets a proper bug number]

Georges Ko wrote:
What were the changes done on Emacs 24.4 regarding subshells (or
processes), compared to version 24.2?

Quite a few, I suspect.  You can use 'diff' to find out the details....

When compiled in the same environment, "tty" in a subshell
(M-x shell) has different outputs:

   - in Emacs 24.2, "tty" outputs the tty,
   - in Emacs 24.4, "tty" outputs "not a tty".

That is, if I run the command below to spawn a shell:

   (apply 'start-process "shell" "*shell*" "/bin/ksh" '("-i"))

   - in Emacs 24.2, "ps" shows the shell has a normal tty,
   - in Emacs 24.4, "ps" shows the shell has a tty with "?".

I don't observe either problem when running Emacs 24.5 under Solaris 11 x86-64 compiled with the bundled GCC (4.5.2). However, I do observe them when running Emacs 24.5 under Solaris 10 sparc compiled with Sun C 5.13.

I couldn't compile 24.3 due to some errors, so I don't know its behavior.

Emacs 24.3 is bundled within Solaris 11.2, for what it's worth.

If you're still running into problems, I suggest replying with details of how you built Emacs (version of OS and compiler, 'configure' arguments, log from 'configure' and 'make', etc.).

PS. This looks a bit like Bug#9150 <http://bugs.gnu.org/9150>, but that bug was in an older Emacs, which probably means it's independent.




--- End Message ---
--- Begin Message --- Subject: Re: Emacs 24.2 vs 24.4 on Solaris: M-x shell and "tty => not a tty" Date: Thu, 11 Jun 2015 16:48:10 -0700 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 Akira Shirai, thanks for the info about grantpt and its internal setuid program; that made the problem obvious. I installed the attached patch into the Emacs master sources and am (perhaps optimistically) marking this bug as done.

Attachment: 0001-Fix-not-a-tty-bug-on-Solaris-10.patch
Description: Text Data


--- End Message ---

reply via email to

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