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)

x86_64
Windows 8.1
task
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: aryx, Assigned: mhentges)

References

Details

Attachments

(1 file)

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.
Related to bug 418655 it sounds like.
Depends on: 418655
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.
`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.
Blocks: 1725895
Assignee: nobody → mhentges
Status: NEW → ASSIGNED

This is fixed by the MSYS2 migration.

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
Resolution: DUPLICATE → FIXED
Product: mozilla.org → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: