| O_CLOEXEC);
+ if (psc->fd == -1 && errno == EINVAL)
+#endif
+ {
+ psc->fd = open(deviceName, O_RDWR);
+ if (psc->fd != -1)
+ fcntl(psc->fd, F_SETFD, fcntl(psc->fd, F_GETFD) | FD_CLOEXEC);
+ }
if (psc->fd < 0) {
ErrorMessageF(&
Set the close on exec flag when opening dri character devices, so they
will be closed and free any resouces allocated in exec.
Signed-off-by: David Fries
Reviewed-by: Adam Jackson
---
I had posted this in November/December, got feedback, redid the patch,
posted an update, but now I don't s
Set the close on exec flag when opening dri character devices, so they
will be closed and free any resouces allocated in exec.
Signed-off-by: David Fries
Reviewed-by: Adam Jackson
---
patch for above bug report
src/egl/drivers/dri2/platform_wayland.c| 11 ++-
src/egl
ff 45 31 e4 eb 1e 49
8b 46 68 48 8b 34 cb 48 8b 4c 24 28 4c 03 78 30 4c 89 ff a4 89 6b 30 42 89
6c ab 08 48 83 c4 38 44 89 e0 5b 5d 41 5c
RIP [] radeon_cs_update_pages+0x103/0x120 [radeon]
RSP
CR2: c9c1d000
---[ end trace 78cce38bd9a7f31d ]---
--
David Fries PGP pub CB1EE8F0