forked from Bananymous/banan-os
Kernel: Fix SYS_FCNTL command handling :)
I had misunderstood how these work
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user