diff options
author | Vikas Gorur <vikas@gluster.com> | 2009-09-24 04:30:06 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-09-24 05:19:30 -0700 |
commit | 2317913ae5556fe402828d97f7da761124c15ba2 (patch) | |
tree | 030fdb0c8fbf7d0179d170170f924e4e054b777f /glusterfsd/src | |
parent | 551782dfd54cb554633de526a0c4e188776c5e78 (diff) |
glusterfsd/main: Do a sem_post only if running in daemon mode.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 4 (mount --bind fails if run immediately after mounting GlusterFS)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=4
Diffstat (limited to 'glusterfsd/src')
-rw-r--r-- | glusterfsd/src/glusterfsd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c index fc837a4ce..19bb787ab 100644 --- a/glusterfsd/src/glusterfsd.c +++ b/glusterfsd/src/glusterfsd.c @@ -1358,7 +1358,7 @@ main (int argc, char *argv[]) if (glusterfs_graph_init (graph, fuse_volume_found) != 0) { gf_log ("glusterfs", GF_LOG_ERROR, "translator initialization failed. exiting"); - if (sem_post (semid) < 0) { + if (!cmd_args->no_daemon_mode && (sem_post (semid) < 0)) { gf_log ("glusterfs", GF_LOG_ERROR, "semaphore synchronization failed," " daemonize problem.exiting: %s", @@ -1372,7 +1372,7 @@ main (int argc, char *argv[]) gf_log ("glusterfs", GF_LOG_NORMAL, "Successfully started"); - if (sem_post (semid) < 0) { + if (!cmd_args->no_daemon_mode && (sem_post (semid) < 0)) { gf_log ("glusterfs", GF_LOG_ERROR, "semaphore synchronization failed," " daemonize problem. exiting: %s", |