Am Fri, 27 Aug 2021 21:25:05 -0500
schrieb Nate Bargmann <n...@n0nb.us>:

> A thought I just had, is I wonder if threading has anything to do with
> this?  While pgrep only returns one PID when Tlf is running, htop
> shows two PIDs.
> 
> Oddly, I figured calling pkill via system() would as the same method
> is used to kill rec from the sound recorder menu.
> 
> I've seen mention that this might require fork() and exec() to start
> the call to play_vk manually so that the PID is known and then use
> kill() on it.  I doubt I'll get to it before tomorrow morning!
> 
> 73, Nate
> 

Hi all, 

as a quick fix do the following:

- Add an '&' to the 'play $1 ...' line in play_vk.sh
- Keep your proposed changes for stoptx, but do not kill play_vk.sh but
  'play' itself:
        IGNORE(system("pkill -SIGTERM play"));

That should work better. There may be side effects. We need to have a
deeper look into it.

73, de Tom

-- 
"Do what is needful!"
Ursula LeGuin: Earthsea
--


Reply via email to