Fix a possible race condition if two processes try to claim the same loop
authorRob Landley <rob@landley.net>
Sun, 25 Jun 2006 15:29:12 +0000 (15:29 -0000)
committerRob Landley <rob@landley.net>
Sun, 25 Jun 2006 15:29:12 +0000 (15:29 -0000)
commit934da82913f70ea3c68bcbcd7b184be54c2c2061
tree38dc2347244d1ace56adae98b04c9055b6ba1cca
parent768945b762b8850691acd2b63116eed18faa1812
Fix a possible race condition if two processes try to claim the same loop
device at the same time.  We should only CLR_FD if the set status fails,
not if the SET_FD fails.
libbb/loop.c