You are not logged in.
Pages: 1
if i issue
pkill -SIGTERM -x firefox
from a console, when will pkill return?
will it return immediately after sending the signals or will it be blocked till all the processes end?
i am using SIGTERM here so that the matched processes will be able to catch the signal and shut down properly, which unfortunately would take time.
Offline
Offhand, I suspect it will return immediately after sending the signal. But why not just run it and find out?
Offline
It returns as soon as the signal is sent.
Also, SIGTERM is the default - you don't need to specify it.
Offline
thank you for the quick response.
actually, after posting the question, i found out the answer by pure logic. since pkill can send any kind of signal to the process, it should return right after sending the signals.
i don't know that SIGTERM is the default signal since it is not documented in the man page. thank you for the tip.
Offline
At the end of the Description section of the man page is, "pkill will send the specified signal (by default SIGTERM) to each process."
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
Pages: 1