[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: No luck trying to pkill play_vk with escape
From: |
Zoltan Csahok |
Subject: |
Re: No luck trying to pkill play_vk with escape |
Date: |
Fri, 27 Aug 2021 22:10:18 +0200 |
Nate, try first the companion command 'pgrep play_vk' while vk is running.
If no output is produced (which I suspect) then try 'pgrep -f play_vk'.
If it outputs the PID then just replace pgrep with pkill.
If there is still no output, then I have no idea.
73,
Zoli
> Sent: Friday, August 27, 2021 at 8:11 PM
> From: "Nate Bargmann" <n0nb@n0nb.us>
> To: "Tlf list" <tlf-devel@nongnu.org>
> Subject: No luck trying to pkill play_vk with escape
>
> One thing that has vexed me for as long as I've used the Tlf voice keyer
> is the inability to cancel a message once it is fired. Invariably I
> will hear a station start to call just as an auto-cq begins (Murphy's
> Law and all that). I've tried this naive hack and it simply will not
> kill the shell script:
>
> $ git diff src/stoptx.c
> diff --git a/src/stoptx.c b/src/stoptx.c
> index 2bed5a5..6ee9d16 100644
> --- a/src/stoptx.c
> +++ b/src/stoptx.c
> @@ -25,6 +25,7 @@
> #include "clear_display.h"
> #include "err_utils.h"
> #include "globalvars.h"
> +#include "ignore_unused.h"
> #include "netkeyer.h"
> #include "tlf.h"
> #include "tlf_curses.h"
> @@ -46,6 +47,9 @@ int stoptx(void) {
>
> }
> }
> + } else if (trxmode == SSBMODE) {
> + IGNORE(system("pkill -SIGTERM play_vk"));;
> + return (0);
> } else {
> return (1);
> }
>
> I also tried killing the play process directly but that fails as well.
>
> I can kill either the play_vk script or the play process with pkill from
> another terminal manually but Tlf does nothing.
>
> Looking at the case label for ESCAPE in callinput.c there is nothing
> mode specific (I have local patches that separate the call to stoptx()
> from clearing the input field so that the first press only stops TX).
>
> I'd appreciate any working advice before the QSO party begins tomorrow.
>
> 73, Nate
>
> P.S. I can push stuff out to my private repository if that helps.
> P.P.S stoptx() works fine in CW.
>
> --
> "The optimist proclaims that we live in the best of all
> possible worlds. The pessimist fears this is true."
> Web: https://www.n0nb.us
> Projects: https://github.com/N0NB
> GPG fingerprint: 82D6 4F6B 0E67 CD41 F689 BBA6 FB2C 5130 D55A 8819
>
>
- 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 <=
- 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, 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/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