|
@@ -64,12 +64,12 @@ function remote_addr()
|
|
|
}
|
|
|
|
|
|
$listen_fd = stream_socket_server (remote_addr(), $errno, $errstr);
|
|
|
-search_work($listen_fd);
|
|
|
+//search_work($listen_fd);
|
|
|
|
|
|
-//$count = 1;
|
|
|
-//while ($count-- > 0) {
|
|
|
-// fork_subprocess($count,$listen_fd);
|
|
|
-//}
|
|
|
+$count = 1;
|
|
|
+while ($count-- > 0) {
|
|
|
+ fork_subprocess($count,$listen_fd);
|
|
|
+}
|
|
|
|
|
|
|
|
|
|