Non-blocking parport open to handle previous unclean shutdowns

This commit is contained in:
Mike Robinson 2014-10-18 19:11:11 +01:00
parent 5b46de3b38
commit 37550aef02

View File

@ -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)