search for: lp_nice

Displaying 1 result from an estimated 1 matches for "lp_nice".

2007 Oct 10
0
patch for rsync: provides "nice = N" option
...allowed, and we rely on the OS + * to quietly limit the maximum nice (no point in us vetting it). + * + * The return value from nice(2) varies across operating systems + * (linux has 0=success, BSD return new nice value), so there is + * no point in checking for errors. + */ + if ( (niceval = lp_nice(i)) > 0 ) + { + rprintf(FLOG, "rsync set nice(%d) on module %s\n", niceval, name); + + nice(niceval); + } + else if ( niceval < 0 ) + { + rprintf(FLOG, "WARNING: nice(%d) not allowed (must be positive) on module %s\n", + niceval, name); + + /* but we keep going */ +...