-
Notifications
You must be signed in to change notification settings - Fork 9k
Open
Labels
Area-TerminalConnectionIssues pertaining to the terminal<->backend connection interfaceIssues pertaining to the terminal<->backend connection interfaceIssue-BugIt either shouldn't be doing this or needs an investigation.It either shouldn't be doing this or needs an investigation.Priority-2A description (P2)A description (P2)Product-TerminalThe new Windows Terminal.The new Windows Terminal.
Milestone
Description
Windows Terminal version (or Windows build number)
1.9.1445.0
Other Software
No response
Steps to reproduce
- Compile the following simple program:
#include <windows.h>
int main()
{
STARTUPINFOW si{ sizeof(si) };
PROCESS_INFORMATION pi{};
if (!CreateProcessW(L"c:\\windows\\system32\\cmd.exe", {}, {}, {}, false, 0, {}, {}, &si, &pi))
return 1;
CloseHandle(pi.hThread);
CloseHandle(pi.hProcess);
return 0;
}- Go to the Terminal settings,
+ Add a new profile,+ New empty profile, and setCommand lineto the compiled exe. - Try to open that profile.
Expected Behavior
The tab should remain active after the initial process exits since there are other active tasks still attached to that particular console.
Actual Behavior
It closes immediately.
Additional details
The problem was initially observed in a more complex scenario, where an app performs a self-update by launching the updater helper process in the same console and exiting. The helper then does its magic, restarts the original program and exits, providing a smooth user experience.
Needless to say that it works and always worked in conhost.
xPaw and pplancq
Metadata
Metadata
Assignees
Labels
Area-TerminalConnectionIssues pertaining to the terminal<->backend connection interfaceIssues pertaining to the terminal<->backend connection interfaceIssue-BugIt either shouldn't be doing this or needs an investigation.It either shouldn't be doing this or needs an investigation.Priority-2A description (P2)A description (P2)Product-TerminalThe new Windows Terminal.The new Windows Terminal.