You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by tr...@apache.org on 2017/02/28 14:28:03 UTC

qpid-dispatch git commit: DISPATCH-644 - Fix daemon mode incorrectly exiting while dispatch router has started

Repository: qpid-dispatch
Updated Branches:
  refs/heads/master 178612056 -> 67bf5013f


DISPATCH-644 - Fix daemon mode incorrectly exiting while dispatch router has started

Signed-off-by: aboutros <ad...@murex.com>


Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/67bf5013
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/67bf5013
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/67bf5013

Branch: refs/heads/master
Commit: 67bf5013fbcd16c5f5f335dfc16f442745890356
Parents: 1786120
Author: aboutros <ad...@murex.com>
Authored: Mon Feb 27 17:59:20 2017 +0100
Committer: aboutros <ad...@murex.com>
Committed: Tue Feb 28 12:27:46 2017 +0100

----------------------------------------------------------------------
 router/src/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/67bf5013/router/src/main.c
----------------------------------------------------------------------
diff --git a/router/src/main.c b/router/src/main.c
index 86ca9d9..69efb3a 100644
--- a/router/src/main.c
+++ b/router/src/main.c
@@ -127,8 +127,8 @@ static void main_process(const char *config_path, const char *python_pkgdir, int
 
     if (fd > 2) {               /* Daemon mode, fd is one end of a pipe not stdout or stderr */
         #ifdef __sun
-        FILE *file = fdopen(fd, "a+");
-        fprintf(file, "ok");
+        const char * okResult = "ok";
+        write(fd, okResult, (strlen(okResult)+1));
         #else
         dprintf(fd, "ok"); // Success signal
         #endif


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org