From 9174966fabb76142f905a2d95625652433ab95a3 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Fri, 16 Mar 2012 07:40:02 +1100 Subject: [PATCH] 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 --- lsusd.c | 1 + 1 file changed, 1 insertion(+) 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 */ -- 2.39.5