mirror of
https://github.com/libretro/RetroArch.git
synced 2024-10-08 15:13:24 +00:00
Non-blocking parport open to handle previous unclean shutdowns
This commit is contained in:
parent
5b46de3b38
commit
37550aef02
@ -122,7 +122,7 @@ static bool parport_joypad_init_pad(const char *path, struct parport_joypad *pad
|
||||
if (access(path, R_OK | W_OK) < 0)
|
||||
return false;
|
||||
|
||||
pad->fd = open(path, O_RDWR);
|
||||
pad->fd = open(path, O_RDWR | O_NONBLOCK);
|
||||
|
||||
*pad->ident = '\0';
|
||||
if (pad->fd >= 0)
|
||||
|
Loading…
Reference in New Issue
Block a user