diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-05-28 13:03:02 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-05-28 13:08:14 +0200 |
commit | a03d6d2fab13c478a0f6cfc3082bec141f2adcf1 (patch) | |
tree | b94fce66af69cb0b75cc66a1d3512e9eba2e4adf /package/kernel/broadcom-wl/files | |
parent | 8b8fb79cbf420be08d9d91c76f484ca5222b6fe8 (diff) | |
download | upstream-a03d6d2fab13c478a0f6cfc3082bec141f2adcf1.tar.gz upstream-a03d6d2fab13c478a0f6cfc3082bec141f2adcf1.tar.bz2 upstream-a03d6d2fab13c478a0f6cfc3082bec141f2adcf1.zip |
broadcom-wl: don't inherit lock descriptor in nas process
Add a local hack to prevent the Broadcom WPA authenticator process from
inheriting the lock descriptor 1000 used to prevent concurrent executions
of the init script.
Without this fix, repeated invocations of /etc/init.d/network, e.g. for
obtaining the enabled state, would hang forever.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'package/kernel/broadcom-wl/files')
-rw-r--r-- | package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh b/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh index 3643f6b1c6..33447341b2 100644 --- a/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh +++ b/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh @@ -443,7 +443,10 @@ EOF txpower=${txpower:-$vif_txpower} [ -z "$txpower" ] || iwconfig $device txpower ${txpower}dBm - eval "$nas_cmd" + # fd 1000 is an inherited lock file descriptor for preventing concurrent + # init script executions. Close it here to prevent the nas daemon from + # inheriting it further to avoid holding the lock indefinitely. + eval "$nas_cmd 1000>&-" } |