WindowServer: Open all fds as CLOEXEC
This will allow forking the window server cleanly :D
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user