UIMA-1964 fixes for java controller broke running deployCppService from command line

git-svn-id: https://svn.apache.org/repos/asf/uima/uimacpp/trunk@1062871 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/utils/deployCppService.cpp b/src/utils/deployCppService.cpp
index d5c6417..399bf4c 100644
--- a/src/utils/deployCppService.cpp
+++ b/src/utils/deployCppService.cpp
@@ -115,6 +115,7 @@
       uima::ResourceManager::getInstance().getLogger().logError(" not from java running ");
       apr_thread_t *stdinthread=0;
       rv = apr_thread_create(&stdinthread, thd_attr, readstdin, 0, pool);
+      rv = apr_thread_join(&rv, stdinthread);
     }  
 
     //wait