Skip to content

Exits on SIGTERM or SIGHUP should properly clean up extensions and TUI #5080

@kylerky

Description

@kylerky

What happened?

I am using pi with the control extension from https://github.com/mitsuhiko/agent-stuff. When I kill pi with SIGTERM or SIGHUP, the socket created by the extension is not properly removed. This is not the case when I exit pi by C-d.

I think this is not a bug of the extension because when I kill pi with SIGTERM or SIGHUP, pi leaves the terminal in a dirty state, indicating that the clean up process is incomplete.

Image

Related #3212

Steps to reproduce

Expected behavior

Pi properly cleans up everything on SIGTERM

Version

0.75.5

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinginprogressIssue is being worked on

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions