Closed
Bug 951291
Opened 11 years ago
Closed 3 years ago
msys terminal window (cmd) can't be closed with |exit| after MozillaBuild ran and ssh-agent.exe is still alive
Categories
(Firefox Build System :: MozillaBuild, task)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: aryx, Assigned: mhentges)
References
Details
Attachments
(1 file)
676 bytes,
patch
|
Details | Diff | Splinter Review |
Windows 8.1 Pro 64 bit, MozillaBuild 1.9.0pre
After launching the start-shell-l10n.bat or start-shell-msvc2010.bat (haven't tested others) and terminating it with |exit|, the shell window can't be closed by typing exit again if ssh-agent.exe is active.
Steps to reproduce:
1. Launch start-shell-msvc2010.bat
2. Type in your ssh password.
3. End the MozillaBuild shell with |exit|.
4. Try to close the msys window by typing |exit|.
Actual result:
Window remains, don't get a new input prompt. Can close the window by clicking on the close button.
Expected result:
Window closes.
I used a MozillaBuild 1.9.0pre environment some weeks ago on a Win XP 32 bit system, and can't remember issues with closing the window.
Comment 2•7 years ago
|
||
This irritates me as it means I need to manually kill ssh-agent if I want the command prompt to close, so I've made the attached patch which will clean up on exit.
There's a problem with multiple instances, though. The first instance, which launched ssh-agent, will also kill it, regardless of any subsequently opened instances. I don't think this patch is ready until that is addressed, though it will work for my purposes.
I'm not sure whether this would apply to bug 418655, as I'm not clear how the window is being closed in that case.
Comment 3•7 years ago
|
||
`trap` is pretty unreliable since anything else in the shell can set a trap and undo yours. But as a default, it may be acceptable. Alternatively, we could write something that launches ssh-agent and a sub-shell and cleans up ssh-agent when the sub-shell exits. That's a bit of complexity though. Not sure if we want an extra process sticking around just to manage ssh-agent.
Assignee | ||
Updated•3 years ago
|
Assignee: nobody → mhentges
Status: NEW → ASSIGNED
Assignee | ||
Comment 5•3 years ago
|
||
This is fixed by the MSYS2 migration.
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
Assignee | ||
Updated•3 years ago
|
Resolution: DUPLICATE → FIXED
Updated•2 years ago
|
Product: mozilla.org → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•