[Rpm-maint] [rpm-software-management/rpm] Use close_range() to set close-on-exec on all fds (PR #4149)
Alberto Ruiz
notifications at github.com
Sat Mar 28 13:39:42 UTC 2026
aruiz left a comment (rpm-software-management/rpm#4149)
> This is failing to build in CI because of this warning:
>
> > :1791:13: error: unused function 'set_cloexec' [-Werror,-Wunused-function]
> > 1.164 1791 | static void set_cloexec(int fd)
>
> Probably easiest to just ifdef the whole rpmSetCloseOnExec() implementation: the new variant just calls close_range() and the other branch includes the existing loop and the helper function.
fixed!
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/4149?email_source=notifications&email_token=ADLPZU4K6GUJGN6SYBHWJ7L4S7IZ5A5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTIMJUHAYDSMRQGAZ2M4TFMFZW63VKON2WE43DOJUWEZLEUVSXMZLOOS2XA4S7MNXW23LFNZ2F633QMVXF6Y3MNFRWW#issuecomment-4148092003
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/4149/c4148092003 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260328/2eb11e1b/attachment.htm>
More information about the Rpm-maint
mailing list