Skip to content

Commit

Permalink
feat: work around exclusive port access with additional ioctl oerride
Browse files Browse the repository at this point in the history
  • Loading branch information
feelfreelinux committed Sep 21, 2024
1 parent f4f81ac commit 364ee8b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ioctlHook.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ int ioctl(int fd, int request, ...)
return 0;
}

if (request == TIOCEXCL || request == TIOCNXCL) {
// Exclusive access to serial port, ignore
return 0;
}

if (request == 0x802c542a || request == 0x402C542B)
{
writeEventToPipe("customBaud", 10);
Expand Down

0 comments on commit 364ee8b

Please sign in to comment.