Hotfix: Better error reporting, fixed sched param setup

This commit is contained in:
Lorenz Meier
2013-09-05 13:24:21 +02:00
parent 09db74da0a
commit aa785b0d2b
3 changed files with 31 additions and 12 deletions
+2 -2
View File
@@ -520,7 +520,7 @@ param_save_default(void)
if (fd < 0) {
warn("opening '%s' for writing failed", param_get_default_file());
return -1;
return fd;
}
result = param_export(fd, false);
@@ -529,7 +529,7 @@ param_save_default(void)
if (result != 0) {
warn("error exporting parameters to '%s'", param_get_default_file());
unlink(param_get_default_file());
return -2;
return result;
}
return 0;