mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 09:49:15 +03:00
yes: Use pledge()
This commit is contained in:
parent
00fa2aa0ec
commit
d6a1237cfe
Notes:
sideshowbarker
2024-07-19 09:14:45 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/d6a1237cfe7
@ -25,9 +25,15 @@
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (argc > 1) {
|
||||
for (;;) {
|
||||
puts(argv[1]);
|
||||
|
Loading…
Reference in New Issue
Block a user