From 7266cee590418f8755ab3ca6e42e72b24c746510 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 18 Feb 2020 10:58:04 +0100 Subject: clear: Use pledge() --- Userland/clear.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Userland/clear.cpp') diff --git a/Userland/clear.cpp b/Userland/clear.cpp index dd6205f2ab..fd3f0506a4 100644 --- a/Userland/clear.cpp +++ b/Userland/clear.cpp @@ -25,9 +25,14 @@ */ #include +#include int main(int, char**) { + if (pledge("stdio", nullptr) < 0) { + perror("pledge"); + return 1; + } printf("\033[3J\033[H\033[2J"); fflush(stdout); return 0; -- cgit v1.2.3