[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: No luck trying to pkill play_vk with escape
From: |
Thomas Beierlein |
Subject: |
Re: No luck trying to pkill play_vk with escape |
Date: |
Sat, 28 Aug 2021 13:20:24 +0200 |
Am Fri, 27 Aug 2021 21:25:05 -0500
schrieb Nate Bargmann <n0nb@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
--
- No luck trying to pkill play_vk with escape, Nate Bargmann, 2021/08/27
- Re: No luck trying to pkill play_vk with escape, Zoltan Csahok, 2021/08/27
- Re: No luck trying to pkill play_vk with escape, Nate Bargmann, 2021/08/27
- Re: No luck trying to pkill play_vk with escape, Nate Bargmann, 2021/08/27
- Re: No luck trying to pkill play_vk with escape,
Thomas Beierlein <=
- Re: No luck trying to pkill play_vk with escape, Nate Bargmann, 2021/08/28
- Re: No luck trying to pkill play_vk with escape, Thomas Beierlein, 2021/08/28
- Re: No luck trying to pkill play_vk with escape, Nate Bargmann, 2021/08/28
- Re: No luck trying to pkill play_vk with escape, Nate Bargmann, 2021/08/28
- Re: No luck trying to pkill play_vk with escape, Thomas Beierlein, 2021/08/29