WindowServer: Open all fds as CLOEXEC

This will allow forking the window server cleanly :D
This commit is contained in:
2024-09-11 22:17:31 +03:00
parent 86dcb5c471
commit 98c011e6a6
2 changed files with 5 additions and 5 deletions

View File

@@ -9,7 +9,7 @@
Framebuffer open_framebuffer()
{
int framebuffer_fd = open("/dev/fb0", O_RDWR);
int framebuffer_fd = open("/dev/fb0", O_RDWR | O_CLOEXEC);
if (framebuffer_fd == -1)
{
perror("open");