Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the way fish handles signals #303

Closed
levantis opened this issue Aug 30, 2012 · 1 comment
Closed

Improve the way fish handles signals #303

levantis opened this issue Aug 30, 2012 · 1 comment

Comments

@levantis
Copy link

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 :(

@faho
Copy link
Member

faho commented Apr 4, 2016

This is a consequence of #238 - we don't run multiple "threads" of fish code in parallel, so you can neither background them nor receive signals.

It would be fixed by the same thing. Because of that, I'm now closing this as a duplicate.

@faho faho closed this as completed Apr 4, 2016
@faho faho added the duplicate label Apr 4, 2016
@faho faho removed this from the fish-future milestone Apr 4, 2016
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants