yes: Use pledge()

This commit is contained in:
Andreas Kling 2020-02-18 10:46:06 +01:00
parent 00fa2aa0ec
commit d6a1237cfe
Notes: sideshowbarker 2024-07-19 09:14:45 +09:00

View File

@ -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]);