Kernel: Fix SYS_FCNTL command handling :)

I had misunderstood how these work
This commit is contained in:
2024-12-03 16:11:03 +02:00
parent e6a2f55a59
commit 0fab7ad63b
4 changed files with 20 additions and 18 deletions

View File

@@ -202,7 +202,7 @@ void update()
int main()
{
// Make stdin non blocking
if (fcntl(STDIN_FILENO, F_SETFL, O_NONBLOCK))
if (fcntl(STDIN_FILENO, F_SETFL, fcntl(STDIN_FILENO, F_GETFL) | O_NONBLOCK))
{
perror("fcntl");
return 1;