Skip to content

Commit

Permalink
Non-blocking parport open to handle previous unclean shutdowns
Browse files Browse the repository at this point in the history
  • Loading branch information
mprobinson committed Oct 18, 2014
1 parent 5b46de3 commit 37550ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion input/parport_joypad.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 37550ae

Please sign in to comment.