You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by ch...@apache.org on 2013/06/27 18:36:27 UTC

svn commit: r1497431 - /uima/sandbox/uima-ducc/trunk/uima-ducc-spawn/src/ducc_ling.c

Author: challngr
Date: Thu Jun 27 16:36:26 2013
New Revision: 1497431

URL: http://svn.apache.org/r1497431
Log:
UIMA-3030 Log process environment.

Modified:
    uima/sandbox/uima-ducc/trunk/uima-ducc-spawn/src/ducc_ling.c

Modified: uima/sandbox/uima-ducc/trunk/uima-ducc-spawn/src/ducc_ling.c
URL: http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/uima-ducc-spawn/src/ducc_ling.c?rev=1497431&r1=1497430&r2=1497431&view=diff
==============================================================================
--- uima/sandbox/uima-ducc/trunk/uima-ducc-spawn/src/ducc_ling.c (original)
+++ uima/sandbox/uima-ducc/trunk/uima-ducc-spawn/src/ducc_ling.c Thu Jun 27 16:36:26 2013
@@ -41,7 +41,7 @@
 #include <netdb.h>
 #include <arpa/inet.h>
 
-#define VERSION "0.8.5"
+#define VERSION "0.8.6"
 
 /**
  * 2012-05-04 Support -w <workingdir>.  jrc.
@@ -62,6 +62,7 @@
  * 2013-05-07 0.8.3 Implement version (-v) option. jrc
  * 2013-06-14 0.8.4 Don't create log heirarchy before switching ids!  jrc
  * 2013-06-20 0.8.5 Use mode 0777 making directories so umask can control permissions. jrc
+ * 2013-06-20 0.8.6 Show full environment being passed to exec-ed process. jrc
  */
 
 /**
@@ -243,7 +244,7 @@ void show_env(char **envp)
 {
     int count = -1;
     while ( envp[++count] != NULL ) {
-        fprintf(stdout, "Envoron[%d] = %s\n", count, envp[count]);
+        fprintf(stdout, "Environ[%d] = %s\n", count, envp[count]);
     }
 }
 
@@ -651,7 +652,6 @@ int main(int argc, char **argv, char **e
     // 
     // Translate DUCC_LD_LIBRARY_PATH into LD_LIBRARY_PATH, if it exists.
     //
-    //show_env(envp);
 
     int env_index = -1;
     char ** pathstr = NULL;
@@ -659,7 +659,7 @@ int main(int argc, char **argv, char **e
         char *srchstring = "DUCC_LD_LIBRARY_PATH=";
         int len = strlen(srchstring);
         if ( strncmp(envp[env_index], srchstring, len) == 0 ) {
-            fprintf(stdout, "3000 Found DUCC_LD_LIBRARY_PATH and it is %s\n", envp[env_index]);
+            // fprintf(stdout, "3000 Found DUCC_LD_LIBRARY_PATH and it is %s\n", envp[env_index]);
             pathstr = &envp[env_index];
             break;
         }
@@ -671,9 +671,10 @@ int main(int argc, char **argv, char **e
         // We modify the variable in place.
         //
         char *val = getenv("DUCC_LD_LIBRARY_PATH");
-        fprintf(stdout, "3002 Changing DUCC_LD_LIBRARY_PATH to LD_LIBRARY_PATH\n");
+        //fprintf(stdout, "3002 Changing DUCC_LD_LIBRARY_PATH to LD_LIBRARY_PATH\n");
         sprintf(*pathstr, "LD_LIBRARY_PATH=%s", val);
     }
+    show_env(envp);
 
     //
     // Now just transmogrify into the requested command