ctdb-util: Log an error if there is no way to set scheduler
authorMartin Schwenke <martin@meltin.net>
Mon, 15 Sep 2014 01:48:33 +0000 (11:48 +1000)
committerMartin Schwenke <martins@samba.org>
Wed, 17 Sep 2014 05:29:10 +0000 (07:29 +0200)
Although configure should catch this, logging a run-time error is
better than being mystified when ctdbd silently exits.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/common/system_util.c

index 8e8f4ac2174755c3d2e479c653cbfffb758232af..6ff82f7147be36bcb6e07b9fe1cfac8a5bf16504 100644 (file)
@@ -77,6 +77,7 @@ bool set_scheduler(void)
        }
 #endif
 #endif
+       DEBUG(DEBUG_CRIT,("No way to set real-time priority.\n"));
        return false;
 }