]> git.pld-linux.org Git - packages/apache-mod_bw.git/blobdiff - apache1-mod_bandwidth-cleanlink.pl
- raw
[packages/apache-mod_bw.git] / apache1-mod_bandwidth-cleanlink.pl
index 5d277f4b92e4d67cbf9882d3374e4d5f6d4b04e7..6d0e9cac70a97b7fd815ebe313c02b81c1501172 100644 (file)
 
 $TIME=120;
 
-$PS="ps -auxw";
+$PS="ps auxw";
 $LINKDIR="/var/run/apache-mod_bandwidth/link";
 
-unless(fork) {
-   unless (fork) {
-      sleep 1 until getppid == 1;
-      while (1) {
-         &do_clean;
-         sleep($TIME);
-      }  
-      exit 0;
-   }
-    exit 0;
-} wait;
 
 sub do_clean {
    local(%ppid);
@@ -49,3 +38,6 @@ sub do_clean {
       }
    }
 }
+
+do_clean();
+
This page took 0.082333 seconds and 4 git commands to generate.