]> git.ipfire.org Git - thirdparty/util-linux.git/commit
Save and restore errno on signal handlers
authorCristian Rodríguez <cristian@rodriguez.im>
Sun, 11 Feb 2024 18:53:30 +0000 (15:53 -0300)
committerCristian Rodríguez <cristian@rodriguez.im>
Mon, 12 Feb 2024 12:56:25 +0000 (09:56 -0300)
commit0754479d6a3d843cd96bfe8185b601f02d444300
tree1aeb60b4afe423936387314c48ae9b779f8db2b8
parent26e778a790fb016f639af5919d08f9affa677f23
Save and restore errno on signal handlers

"Fetching and setting the value of errno is async-signal-safe
provided that the signal handler saves errno on entry and
       restores its value before returning."

save and restore errno on cases where it is needed.
include/c.h
lib/pager.c
misc-utils/hardlink.c
text-utils/pg.c