Description of problem: I've seen this in Fedora 13 and 11. I know that is used to work at least as far back as Fedora7, I'm not sure when it broke. How reproducible: Steps to Reproduce: 1. log in a user with tcsh shell 2. become root via su 3. type "suspend" Actual results: Nothing happens, you stay as root Expected results: It should do "Suspended (signal)" and put you back into your user shell Additional info:
Created attachment 429307 [details] change to 1.22 file: properly propagate upstream stop signals in su This is actually not a bug with tcsh, but with /bin/su in coreutils. The following recent change broke the behavior of "suspend" in tcsh, and affects Fedora 11, 12, 13, and rawhide: http://cvs.fedoraproject.org/viewvc/devel/coreutils/coreutils-pam.patch?r1=1.21&r2=1.22 The issue lies with su attempting to propagate stop signals from its child (tcsh) to itself, which will notify its parent (presumably another shell). The previous version (1.21) was incorrect in that it always sent itself a SIGSTOP regardless of what type of signal was received (the "suspend" command in tcsh sends a SIGTSTP). This worked because SIGSTOP can't be blocked (masked). The 1.22 version attempted to fix this by directly propagating the signal, but failed for SIGTSTP because it was blocked. My patch fixes both problems. The relevant code change is: + /* tcsh sends SIGTSTP to the process group, and so is already pending */ kill(getpid(), WSTOPSIG(status)); + if (WSTOPSIG(status) != SIGSTOP) { + sigemptyset(&blockset); + sigaddset(&blockset, WSTOPSIG(status)); + sigprocmask(SIG_UNBLOCK, &blockset, &ourset); + /* signal taken here */ + sigprocmask(SIG_SETMASK, &ourset, NULL); + }
I've been having the same problem on both Fedora 12 and 13. So fare my workaround has been: alias suspend kill -STOP $$
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
Moving bz to coreutils component.
This message is a reminder that Fedora 13 is nearing its end of life. Approximately 30 (thirty) days from now Fedora will stop maintaining and issuing updates for Fedora 13. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '13'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 13's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 13 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora please change the 'version' of this bug to the applicable version. If you are unable to change the version, please add a comment here and someone will do it for you. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
This bug still exists on Fedora 14
Fixed in coreutils-8.12-6.fc17 .
coreutils-8.12-6.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/coreutils-8.12-6.fc16
coreutils-8.12-6.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.