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 | 8772c5363073be6b2254f85065e5586bb26c4d86 (patch) | |
| tree | 918ee76e7c0090babc6b028e330bc397967758e7 /custom | |
| parent | 430cf952a7884e700d7c85f54801417561af28bb (diff) | |
| download | dotemacs-8772c5363073be6b2254f85065e5586bb26c4d86.tar.gz dotemacs-8772c5363073be6b2254f85065e5586bb26c4d86.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 'custom')
0 files changed, 0 insertions, 0 deletions
