1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 03:18:11 +00:00

Kernel: Tighten up some promise checks

Since we're not keeping compatibility with OpenBSD about what promises are
required for which syscalls, tighten things up so that they make more sense.
This commit is contained in:
Sergey Bugaev 2020-05-31 21:58:06 +03:00 committed by Andreas Kling
parent a77405665f
commit 05b7fec517
2 changed files with 5 additions and 10 deletions

View file

@ -31,11 +31,6 @@
int main(int argc, char** argv)
{
if (pledge("stdio", nullptr) < 0) {
perror("pledge");
return 1;
}
if (argc == 1) {
char buffer[HOST_NAME_MAX];
int rc = gethostname(buffer, sizeof(buffer));