summaryrefslogtreecommitdiff
path: root/Kernel/Process.cpp
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2020-05-03 14:47:15 +0200
committerAndreas Kling <kling@serenityos.org>2020-05-03 22:46:28 +0200
commitdce3faff086f5cca1cd41225e27983d8f2ec89ba (patch)
treec67c56ed8ab03c37928b0df9357bf1e8fc552477 /Kernel/Process.cpp
parentb24cfd36aeb9c3ebbbb096eb3837629d9b5fb124 (diff)
downloadserenity-dce3faff086f5cca1cd41225e27983d8f2ec89ba.zip
Kernel: Don't crash on invalid fcntl
Diffstat (limited to 'Kernel/Process.cpp')
-rw-r--r--Kernel/Process.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp
index 97456e180c..616fdff75e 100644
--- a/Kernel/Process.cpp
+++ b/Kernel/Process.cpp
@@ -1865,7 +1865,7 @@ int Process::sys$fcntl(int fd, int cmd, u32 arg)
description->set_file_flags(arg);
break;
default:
- ASSERT_NOT_REACHED();
+ return -EINVAL;
}
return 0;
}