I'm trying to run the
Code: Select all
ioctl(this.piControl , 0x4b0c, null);
When I run `ioctl(this.piControl , 0x4b0c, null);` naively with NodeJS it works fine, however, when I do it from within a Docker container it appears to corrupt the piControl file and I have to go in with a manual `piTest -x` command to fix it.
I've tried to add `SYS_TTY_CONFIG` to the container's capabilities.
I've tried `r+` and `w+` for file descriptor:
Code: Select all
this.piControl = fs.openSync("/dev/piControl0", "r+");