udebug: wait for response after buffer add/remove
authorFelix Fietkau <nbd@nbd.name>
Thu, 30 Nov 2023 11:23:30 +0000 (12:23 +0100)
committerFelix Fietkau <nbd@nbd.name>
Thu, 30 Nov 2023 11:29:40 +0000 (12:29 +0100)
commit40acbe34632b8e4e860fe41bb14ab5d7d5c9cfe9
tree5f89079b27bc2cc73cd97515eb9f2df2c1385459
parente84c000c4756ae3d0aa80b2c66ec43cf7fc416c4
udebug: wait for response after buffer add/remove

Fixes a race condition where freeing a buffer and immediately re-allocating and
adding it would fail to pass the file descriptor to udebugd

Signed-off-by: Felix Fietkau <nbd@nbd.name>
udebug-priv.h
udebug-remote.c
udebug.c