作者 邓超

x

@@ -6,10 +6,10 @@ use Swoole\Process; @@ -6,10 +6,10 @@ use Swoole\Process;
6 6
7 include_once __DIR__."/../vendor/autoload.php"; 7 include_once __DIR__."/../vendor/autoload.php";
8 8
9 -exec("ps -aux|grep -E \"mail-serve-sync-list\" -c",$exec);  
10 -if(intval($exec[0]) > 200){  
11 - exit;  
12 -} 9 +//exec("ps -aux|grep -E \"mail-serve-sync-list\" -c",$exec);
  10 +//if(intval($exec[0]) > 200){
  11 +// exit;
  12 +//}
13 13
14 swoole_set_process_name("mail-serve-sync-list"); 14 swoole_set_process_name("mail-serve-sync-list");
15 15
@@ -35,7 +35,7 @@ while (1){ @@ -35,7 +35,7 @@ while (1){
35 } 35 }
36 } 36 }
37 37
38 - sleep(1); 38 + usleep(1000);
39 } 39 }
40 40
41 41