commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r1196265 - in /commons/proper/daemon/trunk/src/native/unix: CHANGES.txt native/arguments.c native/arguments.h native/help.c
Date Tue, 01 Nov 2011 20:43:53 GMT
Author: mturk
Date: Tue Nov  1 20:43:52 2011
New Revision: 1196265

URL: http://svn.apache.org/viewvc?rev=1196265&view=rev
Log:
revert procname visiblilty change

Modified:
    commons/proper/daemon/trunk/src/native/unix/CHANGES.txt
    commons/proper/daemon/trunk/src/native/unix/native/arguments.c
    commons/proper/daemon/trunk/src/native/unix/native/arguments.h
    commons/proper/daemon/trunk/src/native/unix/native/help.c

Modified: commons/proper/daemon/trunk/src/native/unix/CHANGES.txt
URL: http://svn.apache.org/viewvc/commons/proper/daemon/trunk/src/native/unix/CHANGES.txt?rev=1196265&r1=1196264&r2=1196265&view=diff
==============================================================================
--- commons/proper/daemon/trunk/src/native/unix/CHANGES.txt (original)
+++ commons/proper/daemon/trunk/src/native/unix/CHANGES.txt Tue Nov  1 20:43:52 2011
@@ -5,7 +5,6 @@ Changes with 1.0.8
   * Better detection of JDK (DAEMON-220)
   * Use CPPFLAGS in makefile (DAEMON-223)
   * Add -umask parameter (DAEMON-221)
-  * Make sure -procname is visible only on Linux (DAEMON-222)
   * Add /etc/alternatives to the location search (DAEMON-224)
 
 Changes with 1.0.7

Modified: commons/proper/daemon/trunk/src/native/unix/native/arguments.c
URL: http://svn.apache.org/viewvc/commons/proper/daemon/trunk/src/native/unix/native/arguments.c?rev=1196265&r1=1196264&r2=1196265&view=diff
==============================================================================
--- commons/proper/daemon/trunk/src/native/unix/native/arguments.c (original)
+++ commons/proper/daemon/trunk/src/native/unix/native/arguments.c Tue Nov  1 20:43:52 2011
@@ -170,9 +170,7 @@ static arg_data *parse(int argc, char *a
     args->outfile = "/dev/null";   /* Swallow by default */
     args->errfile = "/dev/null";   /* Swallow by default */
     args->redirectstdin = true;    /* Redirect stdin to /dev/null by default */
-#ifdef OS_LINUX    
     args->procname = "jsvc.exec";
-#endif
 #ifndef JSVC_UMASK
     args->umask   = 0077;
 #else
@@ -377,7 +375,6 @@ static arg_data *parse(int argc, char *a
         else if (!strcmp(argv[x], "-disablesystemassertions")) {
             args->opts[args->onum++] = strdup(argv[x]);
         }
-#ifdef OS_LINUX        
         else if (!strcmp(argv[x], "-procname")) {
             args->procname = optional(argc, argv, x++);
             if (args->procname == NULL) {
@@ -385,7 +382,6 @@ static arg_data *parse(int argc, char *a
               return NULL;
             }
         }
-#endif
         else if (!strncmp(argv[x], "-agentlib:", 10)) {
             args->opts[args->onum++] = strdup(argv[x]);
         }

Modified: commons/proper/daemon/trunk/src/native/unix/native/arguments.h
URL: http://svn.apache.org/viewvc/commons/proper/daemon/trunk/src/native/unix/native/arguments.h?rev=1196265&r1=1196264&r2=1196265&view=diff
==============================================================================
--- commons/proper/daemon/trunk/src/native/unix/native/arguments.h (original)
+++ commons/proper/daemon/trunk/src/native/unix/native/arguments.h Tue Nov  1 20:43:52 2011
@@ -69,10 +69,8 @@ typedef struct {
     char *outfile;
     /** Destination for stderr */
     char *errfile;
-#ifdef OS_LINUX    
-    /** Program name for Linux **/
+    /** Program name **/
     char *procname;
-#endif
     /** Whether to redirect stdin to /dev/null or not. Defaults to true **/
     bool redirectstdin;
     /** What umask to use **/

Modified: commons/proper/daemon/trunk/src/native/unix/native/help.c
URL: http://svn.apache.org/viewvc/commons/proper/daemon/trunk/src/native/unix/native/help.c?rev=1196265&r1=1196264&r2=1196265&view=diff
==============================================================================
--- commons/proper/daemon/trunk/src/native/unix/native/help.c (original)
+++ commons/proper/daemon/trunk/src/native/unix/native/help.c Tue Nov  1 20:43:52 2011
@@ -89,10 +89,8 @@ void help(home_data *data)
     printf("        load native agent library by full pathname\n");
     printf("    -javaagent:<jarpath>[=<options>]\n");
     printf("        load Java programming language agent, see java.lang.instrument\n");
-#ifdef OS_LINUX    
     printf("    -procname <procname>\n");
     printf("        use the specified process name\n");
-#endif
     printf("    -wait <waittime>\n");
     printf("        wait waittime seconds for the service to start\n");
     printf("        waittime should multiple of 10 (min=10)\n");



Mime
View raw message