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

Prevent reloadLogs command from hanging #4782

Merged
merged 1 commit into from
Sep 28, 2020
Merged

Conversation

mbrooks
Copy link
Contributor

@mbrooks mbrooks commented Jul 15, 2020

Previously, when the pm2 reloadLogs command was running as a non-root
user, the process will not release and hangs. The reason for the hang
is that the forked process never closes because the object is empty
and doesn't contain the expected object. This commit checks if an
object exists first, before trying to execute methods on it.

Related to: #4781

Co-authored-by: Franck Danard fdanard@sangoma.com

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? no
Fixed tickets #4781
License MIT
Doc PR https://github.com/pm2-hive/pm2-hive.github.io/pulls

@CLAassistant
Copy link

CLAassistant commented Jul 15, 2020

CLA assistant check
All committers have signed the CLA.

Previously, when the pm2 reloadLogs command was running as a non-root
user, the process will not release and hangs. The reason for the hang
is that the forked process never closes because the object is empty
and doesn't contain the expected object. This commit checks if an
object exists first, before trying to execute methods on it.

Related to: Unitech#4781

Co-authored-by: Franck Danard <fdanard@sangoma.com>
@mbrooks
Copy link
Contributor Author

mbrooks commented Jul 22, 2020

Hello, Does the CLA need to be signed by me or the responsible party in my company?

@mbrooks
Copy link
Contributor Author

mbrooks commented Jul 22, 2020

If there are no more issues with the CLA, maybe someone can help me on the right direction for this issue? This patch seems to resolve the issue for us, but it may not be the best approach. If you can point me in a direction I should look, it would be helpful. I would love to help contribute if I can to resolve our issue.

Thanks!

@Unitech Unitech merged commit 70715ae into Unitech:development Sep 28, 2020
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

Successfully merging this pull request may close these issues.

3 participants