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

Add some documentation for running processes #441

Closed
nesk opened this issue Nov 30, 2017 · 1 comment
Closed

Add some documentation for running processes #441

nesk opened this issue Nov 30, 2017 · 1 comment

Comments

@nesk
Copy link

nesk commented Nov 30, 2017

I've just noticed Psy Shell was acting strange when running processes. See this example:

>>> $p = proc_open('nc -l', [], $pipes)
=> process resource #190
>>> proc_get_status($p)['running']
=> false

I'm starting a new process with the listening mode of netcat here, which runs indefinitely. The running status property returns false, although the netcat process is still running. It seems like PHP can't see it running.

After searching for a while, I found the solution in #198. There is a usePcntl option, I set it to false and now everything works fine, the running status property now returns true.

It would be worth talking about this kind of issue in the documentation. 🙂

@bobthecow
Copy link
Owner

Added to the Troubleshooting documentation: https://github.com/bobthecow/psysh/wiki/Troubleshooting

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