From: NeilBrown Date: Thu, 15 Mar 2012 20:40:02 +0000 (+1100) Subject: lsusd: add missing unlock of disable file. X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=9174966fabb76142f905a2d95625652433ab95a3;p=susman.git lsusd: add missing unlock of disable file. We shouldn't hold the disable file locked while alerting watchers. The comment said that we didn't, but we did. So unlock it. Signed-off-by: NeilBrown --- diff --git a/lsusd.c b/lsusd.c index 91b0512..1886816 100644 --- a/lsusd.c +++ b/lsusd.c @@ -181,6 +181,7 @@ main(int argc, char *argv) /* blocked - so need to ensure request still valid */ continue; } + flock(disable, LOCK_UN);; /* we got that without blocking but are not holding it */ /* Next two might block, but that doesn't abort suspend */