diff options
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 fc837a4ce68..19bb787abd4 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",  | 
