bc: convert to "G trick" - this returns bc to zero bss increase
[oweals/busybox.git] / util-linux / renice.c
index 65a80001b14d4e032b847722669004b5a390e902..ee0fb3c8eae0a445e40ab793ed9b4b834dd1dfd6 100644 (file)
@@ -6,7 +6,6 @@
  *
  * Licensed under GPLv2 or later, see file LICENSE in this source tree.
  */
-
 /* Notes:
  *   Setting an absolute priority was obsoleted in SUSv2 and removed
  *   in SUSv3.  However, the common linux version of renice does
@@ -40,7 +39,6 @@
 //usage:     "\n       -u      Process user names"
 
 #include "libbb.h"
-#include <sys/resource.h>
 
 int renice_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
 int renice_main(int argc UNUSED_PARAM, char **argv)
@@ -95,6 +93,7 @@ int renice_main(int argc UNUSED_PARAM, char **argv)
                /* Process an ID arg. */
                if (which == PRIO_USER) {
                        struct passwd *p;
+                       /* NB: use of getpwnam makes it risky to be NOFORK, switch to getpwnam_r? */
                        p = getpwnam(arg);
                        if (!p) {
                                bb_error_msg("unknown user %s", arg);