mirror of
https://github.com/systemd/systemd.git
synced 2024-12-25 01:34:28 +03:00
void call of page_size guarantees that sysconf is not called from signal handler
This commit is contained in:
parent
14a6aee050
commit
1595b257df
@ -113,6 +113,10 @@ void sigbus_install(void) {
|
||||
.sa_flags = SA_SIGINFO,
|
||||
};
|
||||
|
||||
/* make sure that sysconf() is not called from a signal handler because
|
||||
* it is not guaranteed to be async-signal-safe since POSIX.1-2008 */
|
||||
(void) page_size();
|
||||
|
||||
n_installed++;
|
||||
|
||||
if (n_installed == 1)
|
||||
|
Loading…
Reference in New Issue
Block a user