src/Comodojo/Daemon/Utils/ProcessTools.php
public static function setNiceness($niceness, $pid = null) {

        return is_null($pid) ? @proc_nice($niceness) : @pcntl_setpriority($pid, $niceness);

    }
public static function setNiceness($niceness, $pid = null) {

        return is_null($pid) ? @proc_nice($niceness) : @pcntl_setpriority($pid, $niceness);

    }
public static function setNiceness ( $ niceness , $ pid = null ) { return is_null ( $ pid ) ? @ proc_nice ( $ niceness ) : @ pcntl_setpriority ( $ pid , $ niceness ) ; }
Set niceness of a running process

@param int|null $pid The pid to query, or current process if null
@return bool
Set niceness of a running process