pthread_atfork: fix return value on malloc failure
authorAlexey Izbyshev <izbyshev@ispras.ru>
Sat, 12 Nov 2022 13:31:01 +0000 (16:31 +0300)
committerRich Felker <dalias@aerifal.cx>
Sat, 12 Nov 2022 17:22:38 +0000 (12:22 -0500)
commit377218cb963aa20c6eb91781b0c79ad606631e6f
treef7791947b438af0d1daa2cb7093edd40fb477b40
parent29e4319178cbc2a4e9f058a99ae8098d4b6ac055
pthread_atfork: fix return value on malloc failure

POSIX requires pthread_atfork to report errors via its return value,
not via errno. The only specified error is ENOMEM.
src/thread/pthread_atfork.c