mirror of
https://github.com/openbsd/xenocara.git
synced 2025-12-13 20:59:03 +00:00
Close the console fd after probing if it's a wscons, even it fails.
This avoids keeping an open file descriptor on machines where /dev/console is not a wsdisplay device.
This commit is contained in:
@@ -627,9 +627,9 @@ xf86OpenWScons(void)
|
||||
/* strip number, assuming 0 */
|
||||
p = strchr(vtprefix, '0');
|
||||
*p = '\0';
|
||||
close(fd);
|
||||
fd = -1;
|
||||
}
|
||||
close(fd);
|
||||
}
|
||||
}
|
||||
if (VTnum != -1) {
|
||||
|
||||
Reference in New Issue
Block a user