"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "alsactl/alsactl.c" between
alsa-utils-1.2.1.tar.bz2 and alsa-utils-1.2.2.tar.bz2

About: ALSA (Advanced Linux Sound Architecture) - Utilities.

alsactl.c  (alsa-utils-1.2.1.tar.bz2):alsactl.c  (alsa-utils-1.2.2.tar.bz2)
skipping to change at line 164 skipping to change at line 164
static void do_nice(int use_nice, int sched_idle) static void do_nice(int use_nice, int sched_idle)
{ {
struct sched_param sched_param; struct sched_param sched_param;
if (use_nice != NO_NICE && nice(use_nice) < 0) if (use_nice != NO_NICE && nice(use_nice) < 0)
error("nice(%i): %s", use_nice, strerror(errno)); error("nice(%i): %s", use_nice, strerror(errno));
if (sched_idle) { if (sched_idle) {
if (sched_getparam(0, &sched_param) >= 0) { if (sched_getparam(0, &sched_param) >= 0) {
sched_param.sched_priority = 0; sched_param.sched_priority = 0;
if (!sched_setscheduler(0, SCHED_RR, &sched_param)) if (!sched_setscheduler(0, SCHED_IDLE, &sched_param))
error("sched_setparam failed: %s", strerror(errno )); error("sched_setparam failed: %s", strerror(errno ));
} else { } else {
error("sched_getparam failed: %s", strerror(errno)); error("sched_getparam failed: %s", strerror(errno));
} }
} }
} }
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
static const char *const devfiles[] = { static const char *const devfiles[] = {
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)