mirror of
https://github.com/asciinema/asciinema.git
synced 2026-04-26 00:15:56 +03:00
[PR #652] [MERGED] fix: avoid closing pty master fd twice #1173
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#1173
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/652
Author: @kxxt
Created: 10/5/2024
Status: ✅ Merged
Merged: 10/5/2024
Merged by: @ku1ik
Base:
develop← Head:fix-double-close📝 Commits (1)
848ab8efix: avoid closing pty master fd twice📊 Changes
1 file changed (+8 additions, -8 deletions)
View changed files
📝
src/pty.rs(+8 -8)📄 Description
The pty master fd is closed twice, once when dropping OwnedFd in
fn execand once when dropping File constructed with unsafe code infn copy.This causes IO Safety violation1 and should be avoided. It becomes a crash in debug build2.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
github.com/rust-lang/rust@1ba00d9cb2↩︎https://github.com/zed-industries/zed/issues/12114 ↩︎