diff options
author | kib <kib@FreeBSD.org> | 2013-02-27 07:34:09 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2013-02-27 07:34:09 +0000 |
commit | 4bffdc6be720eb93176e86c7b9c1c54e8749ebb5 (patch) | |
tree | 8df71fb8d7a1a41ceafe22fe0100b2ffb83a0935 /lib/libc/stdlib/getenv.c | |
parent | 85115264a0ce0884fa30a442870f1a689aa87c58 (diff) | |
download | FreeBSD-src-4bffdc6be720eb93176e86c7b9c1c54e8749ebb5.zip FreeBSD-src-4bffdc6be720eb93176e86c7b9c1c54e8749ebb5.tar.gz |
Make recursive getblk() slightly more useful. Keep the buffer state
intact if getblk() is done on the already owned buffer. Exit from
brelse() early when the lock recursion is detected, otherwise brelse()
might prematurely destroy the buffer under some circumstances.
Sponsored by: The FreeBSD Foundation
Noted by: mckusick
Tested by: pho
MFC after: 2 weeks
Diffstat (limited to 'lib/libc/stdlib/getenv.c')
0 files changed, 0 insertions, 0 deletions