Author: challngr Date: Fri Jun 14 19:01:43 2013 New Revision: 1493205 URL: http://svn.apache.org/r1493205 Log: UIMA-2999 Don't make directories before switching ids.
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=1493205&r1=1493204&r2=1493205&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 Fri Jun 14 19:01:43 2013 @@ -41,7 +41,7 @@ #include <netdb.h> #include <arpa/inet.h> -#define VERSION "0.8.3" +#define VERSION "0.8.4" /** * 2012-05-04 Support -w <workingdir>. jrc. @@ -60,6 +60,7 @@ * in both user and agent logs. jrc * 2013-05-07 0.8.2 Implement append (-a) option. jrc * 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 */ /** @@ -535,12 +536,6 @@ int main(int argc, char **argv, char **e fprintf(stdout, "301 Redirecting console into file %s.\n", filepath); redirect = 1; } - - if ( redirect && ( filepath != NULL) ) { - logfile = mklogfile(filepath); - } else { - fprintf(stdout, "300 Bypassing redirect of log.\n"); - } // do this here before redirection stdout / stderr fprintf(stdout, "0 %d\n", getpid()); // code 0 means we passed tests and are about to dup I/O @@ -604,6 +599,12 @@ int main(int argc, char **argv, char **e } } + if ( redirect && ( filepath != NULL) ) { + logfile = mklogfile(filepath); + } else { + fprintf(stdout, "300 Bypassing redirect of log.\n"); + } + if ( append ) { return do_append(filepath, argc, argv); }