Ignore:
Timestamp:
Feb 25, 2011, 9:26:54 PM (13 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.18.3 to avoid problems with the tar command which is now failing on recent versions with busybox 1.7.3
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi-busybox/coreutils/nice.c

    r1765 r2725  
    55 * Copyright (C) 2005  Manuel Novoa III  <mjn3@codepoet.org>
    66 *
    7  * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
     7 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
    88 */
    99
     
    1111#include "libbb.h"
    1212
    13 int nice_main(int argc, char **argv);
     13int nice_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
    1414int nice_main(int argc, char **argv)
    1515{
     
    1818    old_priority = getpriority(PRIO_PROCESS, 0);
    1919
    20     if (!*++argv) { /* No args, so (GNU) output current nice value. */
     20    if (!*++argv) { /* No args, so (GNU) output current nice value. */
    2121        printf("%d\n", old_priority);
    2222        fflush_stdout_and_exit(EXIT_SUCCESS);
    2323    }
    2424
    25     adjustment = 10;            /* Set default adjustment. */
     25    adjustment = 10;  /* Set default adjustment. */
    2626
    2727    if (argv[0][0] == '-') {
     
    3333            argv[0] += 1; argv--; argc++;
    3434        }
    35         if (argc < 4) {         /* Missing priority and/or utility! */
     35        if (argc < 4) {  /* Missing priority and/or utility! */
    3636            bb_show_usage();
    3737        }
     
    4848    }
    4949
    50     BB_EXECVP(*argv, argv);     /* Now exec the desired program. */
    51 
    52     /* The exec failed... */
    53     xfunc_error_retval = (errno == ENOENT) ? 127 : 126; /* SUSv3 */
    54     bb_perror_msg_and_die("%s", *argv);
     50    BB_EXECVP_or_die(argv);
    5551}
Note: See TracChangeset for help on using the changeset viewer.