diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-24 04:08:19 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-24 04:08:19 -0500 |
| commit | 91bb2857a90edfcca0fc0907ce813d4bd76f1b7a (patch) | |
| tree | 80c108ed506d8c2b91f30e59713d1db4f2959d71 /modules/custom-buffer-file.el | |
| parent | c23c5b31b0ccd9d403d7807718e4246accaba376 (diff) | |
| download | dotemacs-91bb2857a90edfcca0fc0907ce813d4bd76f1b7a.tar.gz dotemacs-91bb2857a90edfcca0fc0907ce813d4bd76f1b7a.zip | |
fix(recording): scope wf-recorder stop signal to our own process
Stopping a Wayland recording ran pkill -INT wf-recorder, which signals every wf-recorder on the system — including an unrelated screen capture the user started outside Emacs. The stop path now scopes the producer-first interrupt to the wf-recorder child of our own recording shell via pkill -P <shell-pid>, in the new cj/recording--interrupt-child-wf-recorder helper.
The producer-first ordering is unchanged: wf-recorder still gets SIGINT before the process-group signal so ffmpeg sees a clean EOF on pipe:0 and finalizes the MKV. The orphan-cleanup at recording start stays a broad by-name kill on purpose — those leftover recorders come from crashed sessions whose shells are already dead, so there is no live PID to scope to. Tests cover the scoped call, the nil-PID no-op, and that the bare system-wide form is never used.
Diffstat (limited to 'modules/custom-buffer-file.el')
0 files changed, 0 insertions, 0 deletions
