-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
kill: Don't error on signal 0 / SIGEXIT #6228
Comments
Had some time to look into this a bit this afternoon and may have found something interesting. Looks like the error is coming from this code path: coreutils/src/uu/kill/src/kill.rs Lines 63 to 65 in d63bc4a
Which propagates to the user as It looks like if signal: T ends up as |
Mocked up a potential solution here. If others agree I can clean this up a bit and submit a PR. |
I don't fully understand the reasoning, because SIGPOLL is also missing from the list, but running it show that it is treated correctly. Your code looks good, please create a PR and let's move the discussion there :) |
Closed by #6269 |
It seems that we somehow try to kill with signal 0. This should instead be a no-op. On Linux we don't do any
kill
-ish syscallso I assume that somehow it's libc handling this case and returning.EINVAL
, I guessFound while thinking about #6222.
EDIT: Note that GNU kill does the syscall, so it's probably not filtered/prevented by libc, I guess:
The text was updated successfully, but these errors were encountered: