5 Feb
2025
5 Feb
'25
4:48 p.m.
Rémi Bernon (@rbernon) commented about server/inproc_sync.c:
+ if (device->fd) release_object( device->fd ); + linux_device_object = NULL; +} + +static enum server_fd_type inproc_sync_get_fd_type( struct fd *fd ) +{ + return FD_TYPE_FILE; +} + +static struct linux_device *get_linux_device(void) +{ + struct linux_device *device; + int unix_fd; + + if (linux_device_object) + return (struct linux_device *)grab_object( linux_device_object ); The static `linux_device_object` doesn't seem to be used? `get_linux_device` is called below and the device is then released in every code path?
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/7226#note_93733