CVS commit: src/lib/libc/gen
"Taylor R Campbell" <[email protected]>
| Newsgroups | gmane.os.netbsd.devel.cvs |
|---|---|
| Message-ID | <[email protected]> |
Module Name: src Committed By: riastradh Date: Tue Apr 28 13:01:25 UTC 2026 Modified Files: src/lib/libc/gen: arc4random.c Log Message: arc4random(3): Use mutex_init, not mutex_unlock, in child post-fork. Using mutex_unlock may try to wake a thread that doesn't exist in the child, which could lead to trouble such as crash or deadlock. But since the child is single-threaded, it is safe to just reinitialize the mutex memory anyway. PR lib/59237: postfork mutex audit: mutex_init, not mutex_unlock To generate a diff of this commit: cvs rdiff -u -r1.50 -r1.51 src/lib/libc/gen/arc4random.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.