Use imsg_get_fd() instead of direct access to imsg.fd
authorclaudio <claudio@openbsd.org>
Tue, 16 Jan 2024 13:09:11 +0000 (13:09 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 16 Jan 2024 13:09:11 +0000 (13:09 +0000)
commit8a53274a29237e1edd7e34dcab81c7202c75d2cf
tree107a5eb427ec5f014dc2fbab3b7fce582e3a190b
parent99402f41c63c7c833705d1b34ef65be5c35baf46
Use imsg_get_fd() instead of direct access to imsg.fd

The change in proc.c can be further simplified once imsg_free() takes
care of unclaimed file descriptors.

OK nicm@
usr.bin/tmux/proc.c
usr.bin/tmux/server-client.c