mirror of
https://github.com/asciinema/asciinema.git
synced 2026-04-25 16:05:52 +03:00
[PR #578] [MERGED] Re-enable default signal handler for SIGPIPE in child process #1128
Labels
No labels
bug
compatibility
feature request
fit for beginners
help wanted
hosting
idea
improvement
packaging
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asciinema#1128
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/asciinema/asciinema/pull/578
Author: @ku1ik
Created: 10/22/2023
Status: ✅ Merged
Merged: 10/23/2023
Merged by: @ku1ik
Base:
develop← Head:sig-fdl-in-child📝 Commits (1)
f8e8a95Re-enable default signal handle for SIGPIPE in child process📊 Changes
1 file changed (+1 additions, -0 deletions)
View changed files
📝
asciinema/pty_.py(+1 -0)📄 Description
Fix for #369.
asciinema parent process doesn't set handler for SIGPIPE, which by default sets SIG_IGN for this signal in a child process. This explicitly sets the handler in the child process to SIG_DFL.
This is something script and mosh do right before exec-ing the command in a child process:
script -
github.com/util-linux/util-linux@f3fd64111c/term-utils/script.c (L987)mosh -
github.com/mobile-shell/mosh@1105d481bb/src/frontend/mosh-server.cc (L540-L546)Many thanks to @Low-power for figuring this out 👏
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.