-
-
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
Refactor signal handling in yes, tee, and timeout #4588
Conversation
I wonder if we could write something (clippy extension?) to detect this kind of pattern |
b60f745
to
66f6d22
Compare
I've been thinking about whether could get rid of using |
The CI fails on 66f6d22 seem unrelated. Can you take a look @tertsdiepraam, looks like a touch issue and some weird syscalls thing on android. |
Yeah the |
I'll also take a look at coreutils/src/uu/tee/src/tee.rs Line 154 in 9090dd7
and coreutils/src/uu/timeout/src/timeout.rs Line 289 in 9090dd7
|
358c9eb
to
2c012b8
Compare
@tertsdiepraam thanks for the review. Should I put this function in uucore as it is duplicated three times over? |
Yeah I think that makes sense |
751bf84
to
980b2b0
Compare
cd7526e
to
f02a93f
Compare
@sylvestre gnu git mirror seems unavailable. |
The CI now seems to work. We'll check in later with the GNU test suite. |
GNU testsuite comparison:
|
Those failing GNU test might be due to the bump to GNU coreutils 9.2, you probably don't need to worry about them. |
966d21a
to
0bbc475
Compare
hmm?
ah seems like most of UError is only implemented for linux and android Any issue on mac though? |
GNU testsuite comparison:
|
That's unfortunate. I think |
The errors seem unrelated to this PR |
Yes, using libc while using nix was a bit redundant. Upon investigation, duplicated code was found and moved to uucore.
GNU testsuite comparison:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it! Let's get this merged.
Edit : Original title was "yes: remove redundant dependency"
Yes, using libc while using nix was a bit redundant.