[Pkg-shadow-devel] Bug#476519: Bug#476519: shell-mode garbles input

Chet Ramey chet.ramey at case.edu
Sat May 3 16:11:38 UTC 2008


jidanni at jidanni.org wrote:
> CR> Does this happen only in an emacs shell-mode window?
> No. It happens also in xterm. Today it at least allowed me to do -c
> date. I did not type exit or logout. The magic hand did.
> # su - nobody -c date
> No directory, logging in with HOME=/
> Sat May  3 01:03:10 CST 2008
> # su - nobody -c 'sh -i'
> No directory, logging in with HOME=/
> sh-3.2$ exit
> # su - nobody
> No directory, logging in with HOME=/
> nobody at jidanni2:/$ logout

FWIW, I can't reproduce this on Fedora 8, the version of Linux I have
available.  This really looks like a terminal process group problem --
read will return -1/EIO if the process doing the read isn't in the same
process group as the terminal and the process is blocking SIGTTIN, which
interactve shells do by default.  Does su do anything with process
groups?

Chet


-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		       Live Strong.  No day but today.
Chet Ramey, ITS, CWRU    chet at case.edu    http://cnswww.cns.cwru.edu/~chet/





More information about the Pkg-shadow-devel mailing list