Signed-off-by: Christoph Hellwig Index: sheepdog/sheep/cluster/accord.c =================================================================== --- sheepdog.orig/sheep/cluster/accord.c 2012-04-25 10:05:50.604164601 +0200 +++ sheepdog/sheep/cluster/accord.c 2012-04-25 10:05:59.652164831 +0200 @@ -489,6 +489,10 @@ static int accord_init(const char *optio } acrd_wq = init_work_queue(1); + if (!acrd_wq) + eprintf("failed to create accord workqueue: %m\n"); + return -1; + } pthread_cond_wait(&start_cond, &start_lock); pthread_mutex_unlock(&start_lock); Index: sheepdog/sheep/cluster/corosync.c =================================================================== --- sheepdog.orig/sheep/cluster/corosync.c 2012-04-25 10:05:50.604164601 +0200 +++ sheepdog/sheep/cluster/corosync.c 2012-04-25 10:05:59.652164831 +0200 @@ -657,6 +657,10 @@ static int corosync_init(const char *opt } corosync_block_wq = init_work_queue(1); + if (!corosync_block_wq) { + eprintf("failed to create corosync workqueue: %m\n"); + return -1; + } return fd; } Index: sheepdog/sheep/cluster/local.c =================================================================== --- sheepdog.orig/sheep/cluster/local.c 2012-04-25 10:05:50.604164601 +0200 +++ sheepdog/sheep/cluster/local.c 2012-04-25 10:05:59.652164831 +0200 @@ -314,6 +314,10 @@ static int local_init(const char *option add_timer(&t, 1); local_block_wq = init_work_queue(1); + if (!local_block_wq) { + eprintf("failed to create local workqueue: %m\n"); + return -1; + } return sigfd; } Index: sheepdog/sheep/cluster/zookeeper.c =================================================================== --- sheepdog.orig/sheep/cluster/zookeeper.c 2012-04-25 10:05:50.604164601 +0200 +++ sheepdog/sheep/cluster/zookeeper.c 2012-04-25 10:05:59.652164831 +0200 @@ -398,6 +398,10 @@ static int zk_init(const char *option, u } zk_block_wq = init_work_queue(1); + if (!zk_block_wq) { + eprintf("failed to create zookeeper workqueue: %m\n"); + return -1; + } return efd; }