mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
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>
This commit is contained in:
parent
19fcf6ff52
commit
fb0b389dc1
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user