Index | Thread | Search

From:
Walter Alejandro Iglesias <wai@roquesor.com>
Subject:
Re: changes to signal handling with respect to ksh ?
To:
"Todd C. Miller" <Todd.Miller@sudo.ws>, Theo Buehler <tb@theobuehler.org>, Marc Espie <marc.espie.openbsd@gmail.com>, ports@openbsd.org
Date:
Fri, 9 Aug 2024 12:36:07 +0200

Download raw body.

Thread
Now I did another experiment.  First I ran from one xterm:

  $ mpv --no-config video.mp4

I opened a second xterm and run:

  $ kill -SIGTSTP $(pgrep mpv)
  $ kill -SIGCONT $(pgrep mpv)
 
That didn'nt work.  But using SIGSTOP:

  $ kill -SIGSTOP $(pgrep mpv)
  $ kill -SIGCONT $(pgrep mpv)

Works fine.  This means that mpv will respond to SIGCONT only when it
was suspended with SIGSTOP.

What I don't understand is if the code catches SIGSTOP to ^Z.  Why it
doesn't work when it does from the terminal?


-- 
Walter