Code

bugfix: commandline option -h does not exit gosa-si process
authorrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 16 Jun 2009 14:16:26 +0000 (14:16 +0000)
committerrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 16 Jun 2009 14:16:26 +0000 (14:16 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13722 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/gosa-si-server

index 7d03c9af8b75ed6b84e1d07f8e0663ea9f93c01b..be587d2700a65f0d7216157a71defd54aa17daa4 100755 (executable)
@@ -320,9 +320,8 @@ usage: $prg [-hvf] [-c config] [-d number]
                           32 : ldap connectivity
                           64 : database status and connectivity
                          128 : main process 
 EOF
-    print "\n" ;
+       exit(0);
 }
 
 
@@ -431,11 +430,7 @@ sub check_cmdline_param () {
        }
 
        # Exit if an error occour
-    if( $err_counter > 0 ) 
-       {
-        &usage( "", 1 );
-        exit( -1 );
-    }
+    if( $err_counter > 0 ) { &usage( "", 1 ); }
 }
 
 
@@ -3420,7 +3415,7 @@ GetOptions("h|help" => \&usage,
         "v|verbose+" => \$verbose,
         "no-arp+" => \$no_arp,
                "d=s" => \$debug_parts,
-           ) or (&usage("", 1)&&(exit(-1))); 
+           ) or &usage("", 1); 
 
 #  read and set config parameters
 &check_cmdline_param ;