Prevent SIGPIPE from terminating the macOS app
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 78/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- macos, swift
- 领域
- desktop, networking
调研方向
首先阅读 macos/Sources/ClowderCore/UnixSocketConnection.swift 第 86-100 行附近的代码,并跟踪 socket 创建过程直到 UnixSocketConnection.send。添加覆盖,关闭 peer,并验证进程仍能存活,同时调用方会收到干净的 EPIPE 或连接错误。完成标准是 SIGPIPE 不再终止 macOS 应用,并且新测试通过。
由索引模型根据 Issue 内容生成。
描述
Problem
UnixSocketConnection.send calls POSIX write(2) without suppressing SIGPIPE. If the daemon closes between the connection check and the write, Darwin can terminate the app instead of returning an error.
Acceptance criteria
- Set
SO_NOSIGPIPEwhen creating the socket, or use an equivalent safe write path. - Preserve clean
EPIPE/connection errors for callers. - Add a test that closes the peer and verifies the process survives.
- 主要语言
- Rust
- 星标
- 0
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
richardcase/clowder 的其他 Issue
-
documentation priority: medium
难度 2/5 半天 新手友好度 82/100
richardcase/clowder#143 ·
-
enhancement github_actions priority: medium rust
难度 4/5 3-5 天 新手友好度 65/100
richardcase/clowder#142 ·
-
github_actions priority: medium
难度 3/5 1-2 天 新手友好度 78/100
richardcase/clowder#141 ·
-
bug priority: medium
难度 4/5 3-5 天 新手友好度 68/100
richardcase/clowder#140 ·
-
bug priority: medium
难度 3/5 1-2 天 新手友好度 72/100
richardcase/clowder#139 ·
查看 richardcase/clowder 的全部 Issue
相似的 Issue
-
ci javascript tests
难度 2/5 1-3 小时 新手友好度 78/100
jonathanong/no-mistakes#3258 ·
维护者通常 1 天内回复
-
area: cpu-engines area: fuzzer good first issue
难度 2/5 1-3 小时 新手友好度 91/100
hffgzktbcc-blip/ounce-core#402 ·
维护者通常 1 天内回复
-
compiler
难度 2/5 1-3 小时 新手友好度 74/100
HerringtonDarkholme/hd-lang#1699 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 65/100
swc-project/swc-ai-issues#432 ·
-
SPLADE `/embed_sparse` output depends on the other inputs in the batch (candle BertModel / DistilBertModel)可能已有人在做 @0z5a 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
huggingface/text-embeddings-inference#979 ·
维护者通常 1 天内回复