aboutsummaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2023-01-27 18:55:10 +0600
committerMike Frysinger <vapier@gmail.com>2023-01-28 13:08:00 -0500
commit459783bbad912e5eda6533959c09b94db1d385d1 (patch)
tree07266d905b14f3f836b76780c408345526483780 /src/shared
parenta28bdc7e5c60058075b6d5721f8e9433ec1893d6 (diff)
openrc: avoid unnecessary malloc inside sig-handler
malloc (called by xasprintf) is not async-signal-safe. beside, the string here is constant, so there's no need to malloc it all. eerrorx isn't async-signal-safe either (due to calling fprintf and exit) but consequence of them are _typically_ not as grave as calling malloc while it's internal state is inconsistent. Bug: https://github.com/OpenRC/openrc/issues/589
Diffstat (limited to 'src/shared')
0 files changed, 0 insertions, 0 deletions