Projet

Général

Profil

« Précédent | Suivant » 

Révision 3f0c20c3

Ajouté par Renato Botelho il y a presque 10 ans

Add -n for 2 remaining sysctl calls, also replace backtick by exec

Voir les différences:

etc/inc/unbound.inc
45 45
     * Set the number of threads equal to number of CPUs.
46 46
     * Use 1 to disable threading, if for some reason this sysctl fails.
47 47
     */
48
    $numprocs = intval(trim(`/sbin/sysctl kern.smp.cpus | /usr/bin/cut -d" " -f2`));
48
    $numprocs = intval(trim(exec('/sbin/sysctl -n kern.smp.cpus')));
49 49
    if ($numprocs > 0)
50 50
        $optimization['number_threads'] = "num-threads: {$numprocs}";
51 51
    else
......
670 670
    unbound_control("reload");
671 671
}
672 672

  
673
?>
673
?>

Formats disponibles : Unified diff