|
Message-ID: <20150304230920.GA21838@wilbur.25thandClement.com> Date: Wed, 4 Mar 2015 15:09:20 -0800 From: William Ahern <william@...handClement.com> To: musl@...ts.openwall.com Subject: getenv_r I noticed that getenv is not thread-safe. Would there be any interest in accepting a patch to implement getenv_r (a NetBSD function) and internal locking? Other than leaving getenv, setenv, and putenv unsafe in threaded environments, the only other alternative is the ugliness that glibc, Solaris, and some others implement, which is basically to leak environ memory.
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.