Close button doesnt send a sigint to running process #18396

Closed
opened 2026-01-31 06:12:39 +00:00 by claunia · 5 comments
Owner

Originally created by @Ricardonacif on GitHub (Sep 7, 2022).

Windows Terminal version

1.14.2281.0

Windows build number

10.0.19044.0

Other Software

No response

Steps to reproduce

Open any process on Windows Terminal that listens for a SIGINT and waits 5 seconds before closing
Click on the close (X) button on Windows Terminal

Expected Behavior

This should send the SIGINT signal to the process, and let it handle it.

Actual Behavior

It insta closes the Windows Terminal and the underlying process

Originally created by @Ricardonacif on GitHub (Sep 7, 2022). ### Windows Terminal version 1.14.2281.0 ### Windows build number 10.0.19044.0 ### Other Software _No response_ ### Steps to reproduce Open any process on Windows Terminal that listens for a SIGINT and waits 5 seconds before closing Click on the close (X) button on Windows Terminal ### Expected Behavior This should send the SIGINT signal to the process, and let it handle it. ### Actual Behavior It insta closes the Windows Terminal and the underlying process
Author
Owner

@DHowett commented on GitHub (Sep 7, 2022):

Thanks for the report! This may need to be moved over to the WSL repository, since they own what happens when they get a "Console Closing" event. Whether they translate it into SIGINT or terminate the process is up to the subsystem host.

@DHowett commented on GitHub (Sep 7, 2022): Thanks for the report! This may need to be moved over to the [WSL repository](https://github.com/microsoft/wsl), since they own what happens when they get a "Console Closing" event. Whether they translate it into `SIGINT` or terminate the process is up to the subsystem host.
Author
Owner

@zadjii-msft commented on GitHub (Sep 7, 2022):

Does the process get a SIGINT if you're running the process in the vintage console/?

@zadjii-msft commented on GitHub (Sep 7, 2022): Does the process get a SIGINT if you're running the process in the vintage console/?
Author
Owner

@Ricardonacif commented on GitHub (Sep 7, 2022):

Actually, I thought this was the default behavior on Powershell, but it's not actually. It's the option -Wait on Start-Process command that makes the process receive the SIGINT and the terminal waits for the process. Do you guys think there's a way of achieving the same behavior on WT?

@Ricardonacif commented on GitHub (Sep 7, 2022): Actually, I thought this was the default behavior on Powershell, but it's not actually. It's the option -Wait on Start-Process command that makes the process receive the SIGINT and the terminal waits for the process. Do you guys think there's a way of achieving the same behavior on WT?
Author
Owner

@carlos-zamora commented on GitHub (Oct 19, 2022):

Hi @Ricardonacif. I'm curious, why do you want this?

We implemented it this way to make sure the UI updates as quickly as possible and create a "snappy" feeling.

@carlos-zamora commented on GitHub (Oct 19, 2022): Hi @Ricardonacif. I'm curious, why do you want this? We implemented it this way to make sure the UI updates as quickly as possible and create a "snappy" feeling.
Author
Owner

@ghost commented on GitHub (Oct 23, 2022):

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@ghost commented on GitHub (Oct 23, 2022): This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#18396