open wlan0 failed:Address already in use (os error 98)
Closed this issue · 2 comments
yaobo-lab commented
DoumanAsh commented
I'm not sure I understand what you're doing
I assume you're getting this error when you call open
Note that this is not regular file open
The way it works is that it creates local file to bind to here
https://github.com/DoumanAsh/wpa-ctrl/blob/master/src/lib.rs#L617
So if you run multiple instances of the same program it would fail due to how I generate local socket name
https://github.com/DoumanAsh/wpa-ctrl/blob/master/src/lib.rs#L87
Do you have multiple instances running?
I can introduce parameter to customize local socket name I guess