summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2014-06-06 12:27:29 +1000
committerMartin Schwenke <martins@samba.org>2014-06-12 05:40:10 +0200
commitfb0b389dc17ee4626f07f2056edecddc51286281 (patch)
treed71c5e1eb89cdd3eac5fade0ae1cc6d97d656193
parent19fcf6ff5206b14c481f078371f5b407d43900b7 (diff)
downloadsamba-fb0b389dc17ee4626f07f2056edecddc51286281.tar.gz
samba-fb0b389dc17ee4626f07f2056edecddc51286281.tar.xz
samba-fb0b389dc17ee4626f07f2056edecddc51286281.zip
ctdb-common: Do not abort if restoring scheduling policy fails
This code is only executed in child processes, so aborting does not really achieve much. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
-rw-r--r--ctdb/common/ctdb_util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ctdb/common/ctdb_util.c b/ctdb/common/ctdb_util.c
index 82c4764ef8d..4fe411fa390 100644
--- a/ctdb/common/ctdb_util.c
+++ b/ctdb/common/ctdb_util.c
@@ -377,10 +377,10 @@ void ctdb_restore_scheduler(struct ctdb_context *ctdb)
ti = 0ULL;
if (getthrds64(getpid(), &te, sizeof(te), &ti, 1) != 1) {
- ctdb_fatal(ctdb, "Unable to get thread information\n");
+ DEBUG(DEBUG_ERR, ("Unable to get thread information\n"));
}
if (thread_setsched(te.ti_tid, 0, SCHED_OTHER) == -1) {
- ctdb_fatal(ctdb, "Unable to set scheduler to SCHED_OTHER\n");
+ DEBUG(DEBUG_ERR, ("Unable to set scheduler to SCHED_OTHER\n"));
}
#endif
#else /* no AIX */
@@ -389,7 +389,7 @@ void ctdb_restore_scheduler(struct ctdb_context *ctdb)
p.sched_priority = 0;
if (sched_setscheduler(0, SCHED_OTHER, &p) == -1) {
- ctdb_fatal(ctdb, "Unable to set scheduler to SCHED_OTHER\n");
+ DEBUG(DEBUG_ERR, ("Unable to set scheduler to SCHED_OTHER\n"));
}
#endif
#endif