diff options
author | andryblack <blackicebox@gmail.com> | 2020-04-24 00:16:31 +0300 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2020-05-17 22:17:15 -0400 |
commit | 8fd330c54e702719301072357c3db591eb16d489 (patch) | |
tree | a4ce01b16b2f1d5df8609fa3c82557d52f365a12 /src/linux/console.c | |
parent | f0c394de8111ff7d498efd2e947d1d36788a9ad3 (diff) | |
download | kutter-8fd330c54e702719301072357c3db591eb16d489.tar.gz kutter-8fd330c54e702719301072357c3db591eb16d489.tar.xz kutter-8fd330c54e702719301072357c3db591eb16d489.zip |
linux: userspace GPIO control
Allow use host GPIO pins for non-realtime purposes.
Signed-off-by: Andrey Kunitsyn <blackicebox@gmail.com>
Diffstat (limited to 'src/linux/console.c')
-rw-r--r-- | src/linux/console.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linux/console.c b/src/linux/console.c index 4afa6151..1c02b7a1 100644 --- a/src/linux/console.c +++ b/src/linux/console.c @@ -53,7 +53,7 @@ set_non_blocking(int fd) return 0; } -static int +int set_close_on_exec(int fd) { int ret = fcntl(fd, F_SETFD, FD_CLOEXEC); |