Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 101081 - Cygwin window cannot complete when an ssh-agent process spawned by keychain is in effect
Summary: Cygwin window cannot complete when an ssh-agent process spawned by keychain i...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: Keychain (show other bugs)
Hardware: m68k Other
: High normal (vote)
Assignee: Keychain Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-02 04:15 UTC by John Kewley
Modified: 2007-07-01 00:21 UTC (History)
0 users

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 John Kewley 2005-08-02 04:15:09 UTC
I am using latest release of cygwin. I use cygwin by running separate cygwin
windows on my Windows XP rather than X windows. I want to run keychain when a
window starts. This causes ssh-agent to run (I do this conditionally on another
one being in existence). All these windows are invoked as bash login windows and
are listed as "con" when I run ps.
When I do exit/^D/logout from the window, window hangs unless ssh-agent is first
deleted.
My current workaround is to count the number of cygwin windows open and when the
final one is exited I kill the ssh-agent. This doesn't permit the persistance
that is a feature of keychain.
Note this is probably a problem with ssh-agent under cygwin, but could perhaps
be sorted for keychain users by use of nohup or similar.

Reproducible: Always
Steps to Reproduce:
1. Add ssh-agent and ssh-add or keychain commands to .bash_profile
2. exit
3.

Actual Results:  
Window hangs and will not close except using X button

Expected Results:  
window should have terminated
Comment 1 Peter `MathFox' Roozemaal 2005-08-02 06:10:49 UTC
You don't mention how you login to your session, but if you're using ssh, the
ssh session will not close if there are processes running in your session (as
long as these programs have input or output open from the terminal session). I
think this is intentional behaviour from the ssh programmers.
Comment 2 John Kewley 2005-08-02 06:30:05 UTC
Additional info:

I do not need to actually run ssh for this problem.
I open a cygwin window on local Win XP Professional machine which via
.bash_profile runs keychain (and therefore ssh-agent and ssh-add). If I then
logout of or close that window (regardless of whether I have run any ssh
sessions) the window won't close unless I kill it directly.

I have been in contact with agriffis@gentoo.org directly about this.

Also, checkout
http://sourceware.org/ml/cygwin/2005-05/msg01333.html
someone else seems to have the same problem.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-07-01 00:21:16 UTC
This is a Gentoo bugzilla, not a Cygwin one.