Hi,
When trying to renice from within top, this fails with syscall 96 in
recent snapshots.
Adding id to the pledge fixes this issue.
Index: top.c
===================================================================
RCS file: /cvs/src/usr.bin/top/top.c,v
retrieving revision 1.85
diff -u -p -r1.85 top.c
--- top.c 25 Oct 2015 09:39:00 -0000 1.85
+++ top.c 30 Oct 2015 11:52:14 -0000
@@ -328,7 +328,7 @@ main(int argc, char *argv[])
preset_argc = 0;
} while (i != 0);
- if (pledge("stdio rpath getpw tty ps vminfo", NULL) == -1)
+ if (pledge("stdio rpath getpw tty ps vminfo id", NULL) == -1)
err(1, "pledge");
/* set constants for username/uid display correctly */
Regards,
Michael