summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/tmux.h
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2024-09-16 07:34:50 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2024-09-16 07:34:50 +0000
commit5fc70b9425f8da0468713fbf2e2c2cd61af60f0f (patch)
treef5def73b6e5608b0c88b76bdfefa5df45bb1f131 /usr.bin/tmux/tmux.h
parentf7f1ddf64763481282028cd9c87b549d06cb8680 (diff)
Close correct file descriptor.
Instead of closing the just received UDP socket we closed the imsg fd thus cleanly shutting down dhcpleased(8). Problem triggered by sf@ with something like while :; do ifconfig vio0 -inet; done while :; do ifconfig vio0 inet autoconf; done The problem triggers when dhcpleased configured a lease and in just the right moment the autoconf flag gets removed. The main process opens a udp socket and sends it to the frontend. At the same time the frontend learned (from the route socket), that the interface lost its autoconf flag. When the frontend then receives the udp socket via fd passing it tries to close it. Due to a typo it would instead close the imsg file descriptor. Found by me after lots of head scratching. OK tb
Diffstat (limited to 'usr.bin/tmux/tmux.h')
0 files changed, 0 insertions, 0 deletions