mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05:00
yes: Use pledge()
This commit is contained in:
parent
00fa2aa0ec
commit
d6a1237cfe
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue