You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function testusr --on-signal USR1
echo Got the signal
end
while true
sleep 10
end
and we run it as a separate process, and then signal it SIGUSR1. We will have to wait from 0 to 10 seconds, until the shell that executes the script gets the control back, and then it runs testusr the number of times it caught the signal.
It seems as an intended behaviour, and in this case, you can just write
for i in (seq 10); sleep 1; end
but I believe it is a big limitation, and it contradicts the documentation :(
The text was updated successfully, but these errors were encountered:
Let's say we have a following script:
function testusr --on-signal USR1
echo Got the signal
end
while true
sleep 10
end
and we run it as a separate process, and then signal it SIGUSR1. We will have to wait from 0 to 10 seconds, until the shell that executes the script gets the control back, and then it runs testusr the number of times it caught the signal.
It seems as an intended behaviour, and in this case, you can just write
for i in (seq 10); sleep 1; end
but I believe it is a big limitation, and it contradicts the documentation :(
The text was updated successfully, but these errors were encountered: