diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-05-11 07:22:34 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-05-11 07:22:34 +0200 |
commit | a25819c43a65b5abd44f42f502718e47fffc6923 (patch) | |
tree | b5c2ec7a15a59c0c03c208ccea0b1a8eaf52b1a1 /sys/lib/python/StringIO.py | |
parent | ed3a576e8b103032b659febc5d3c62565c9cf7d7 (diff) |
devip: avoid media bind/unbind kproc reader startup race, simplify etherbind
mark reader process pointers with (void*)-1 to mean
not started yet. this avoids the race condition when
media unbind happens before the kproc has set its
Proc* pointer. then we would not post the note and
the reader would continue running after unbind.
etherbind can be simplified by reading the #lX/addr
file to get the mac address, avoiding the temporary
buffer.
Diffstat (limited to 'sys/lib/python/StringIO.py')
0 files changed, 0 insertions, 0 deletions