Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 82467 - app-shells/psh - Late handling of SIGTERM
Summary: app-shells/psh - Late handling of SIGTERM
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-18 08:54 UTC by Yosef Meller
Modified: 2007-01-22 07:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yosef Meller 2005-02-18 08:54:09 UTC
When psh runs from Konsole or agetty as a login shell and recieves a TERM, it waits until enter is pressed, and only then handles it. The problem does not occur when used from a regular tty. In both cases, when TERM is finally handled, the history is updated properly and the exit is OK.

Reproducible: Always
Steps to Reproduce:
1. Open psh as a Konsole task (not invoked from another shell), e.g. with konsole -e psh
2. click the X to close the window. wait for the error box and press cancel.
3. now click the X again, and press enter immediately.
4. try 2-3 by right-clicking and choosing 'Send Signal' -> 'TERM'
5. login in text mode when psh is your home shell
6, send psh a TERM from some other shell.
7. go back to the psh you tried to terminate, and press enter. 
Actual Results:  
step 2 will fail to terminate psh.
step 3 will terminate OK after <enter>.
same for 4,
step 7 shows same behaveiour in text console.

Expected Results:  
TERM should be handled immediately.

It seems that Control-C waits as well.
Comment 1 Yosef Meller 2005-02-18 08:56:09 UTC
Oops, I erred in the description: the problem *does too* occur in a regular tty
Comment 2 Alec Warner (RETIRED) archtester gentoo-dev Security 2007-01-22 07:38:50 UTC
I can't duplicate on psh-1.8, please re-open if this is still a problem.