Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"shutdown" method cannot close manager and worker process #73

Closed
jyoxun opened this issue Jun 13, 2014 · 1 comment
Closed

"shutdown" method cannot close manager and worker process #73

jyoxun opened this issue Jun 13, 2014 · 1 comment

Comments

@jyoxun
Copy link

jyoxun commented Jun 13, 2014

In 1.7.2 version, use the method like "$serv->shutdown();".
It will close master process only, but the manager and worker process still alive.

Here is the terminal output, fyi.
before:
root@john:~# ps aux|grep swoole
root 9005 0.1 0.9 201308 13884 pts/0 Sl+ 16:44 0:00 php-swoole-master-9005
root 9007 0.0 0.2 193112 4304 pts/0 S+ 16:44 0:00 php-swoole-manager
root 9010 0.0 0.3 193428 6096 pts/0 S+ 16:44 0:00 php-swoole-worker-9010
root 9011 0.0 0.3 193428 6096 pts/0 S+ 16:44 0:00 php-swoole-worker-9011
root 9012 0.0 0.4 193372 6180 pts/0 S+ 16:44 0:00 php-swoole-worker-9012
root 9013 0.0 0.4 193372 6180 pts/0 S+ 16:44 0:00 php-swoole-worker-9013

after:
root@john:~# ps aux|grep swoole
root 9007 0.0 0.2 193112 4304 pts/0 S 16:44 0:00 php-swoole-manager
root 9010 0.0 0.4 193428 6444 pts/0 S 16:44 0:00 php-swoole-worker-9010
root 9011 0.0 0.3 193428 6096 pts/0 S 16:44 0:00 php-swoole-worker-9011
root 9012 0.0 0.4 193372 6180 pts/0 S 16:44 0:00 php-swoole-worker-9012
root 9013 0.0 0.4 193372 6180 pts/0 S 16:44 0:00 php-swoole-worker-9013

@matyhtf
Copy link
Member

matyhtf commented Jun 24, 2014

Fixed in 1.7.3

@matyhtf matyhtf closed this as completed Jun 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants