fix(clipboard): don't kill copy_command processes that own the selection (#5458)

* fix(clipboard): don't kill copy_command processes that own the selection

The reaping added in #4298 kills the copy_command process if it is still
running one second after the copied text was written to its stdin. X11 and
Wayland clipboard helpers are supposed to keep running: they own the
selection and serve it to whoever pastes it, so killing them empties the
clipboard.

Wait for the process instead of polling it with a deadline. Commands that
exit on their own are still reaped as soon as they do, so the zombies #4298
was about don't come back.

* docs(changelog): add PR
This commit is contained in:
Teddy Tennant
2026-08-12 12:26:33 +02:00
committed by GitHub
parent c428ae93b9
commit a9db5664be
2 changed files with 95 additions and 26 deletions
+1
View File
@@ -28,6 +28,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
* fix: clear existing pane name when entering rename input (https://github.com/zellij-org/zellij/pull/5369)
* fix: occasional input spam when pressing ESC and holding the mouse over slow SSH connections (https://github.com/zellij-org/zellij/pull/5323)
* chore: switch cassowary deps to maintained fork kasuari (https://github.com/zellij-org/zellij/pull/5416)
* fix: don't kill the `copy_command` process while it owns the system clipboard (https://github.com/zellij-org/zellij/pull/5458)
* chore: switch unmaintained daemonize with maintained fork daemonix (https://github.com/zellij-org/zellij/pull/4512)
* feat: handle nested Zellij sessions (https://github.com/zellij-org/zellij/pull/5417)
* chore: remove outdated manpage and some build fixes (https://github.com/zellij-org/zellij/pull/5426)