aboutsummaryrefslogtreecommitdiffstats
path: root/tools/hotplug/Linux/locking.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/hotplug/Linux/locking.sh')
-rw-r--r--tools/hotplug/Linux/locking.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/hotplug/Linux/locking.sh b/tools/hotplug/Linux/locking.sh
index e34f155438..122bcfb53b 100644
--- a/tools/hotplug/Linux/locking.sh
+++ b/tools/hotplug/Linux/locking.sh
@@ -44,7 +44,7 @@ claim_lock()
# See below for a correctness proof.
local rightfile
while true; do
- eval "exec $_lockfd>>$_lockfile"
+ eval "exec $_lockfd<>$_lockfile"
flock -x $_lockfd || return $?
# We can't just stat /dev/stdin or /proc/self/fd/$_lockfd or
# use bash's test -ef because those all go through what is