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:
parent
a77405665f
commit
05b7fec517
2 changed files with 5 additions and 10 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue