-
-
Notifications
You must be signed in to change notification settings - Fork 29
Fix bad pgrep / kill #158
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
Fix bad pgrep / kill #158
Conversation
It's common to have forks of openwisp-monitoring due to use of $(some_command), so this can return more than one PID. Further, by calling kill "$pid" we just end up with an error about the parameter not being an integer.
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
📝 WalkthroughWalkthroughThe shell monitoring agent updates its process lookup calls to add Estimated code review effort🎯 2 (Simple) | ⏱️ ~5 minutes 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
✏️ Tip: You can disable this entire section by setting Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
It's common to have forks of openwisp-monitoring due to use of $(some_command), so this can return more than one PID. Further, by calling kill "$pid" we just end up with an error about the parameter not being an integer.
Checklist
Reference to Existing Issue
Closes #157
Description of Changes
Only pick process whose parent is init, ignore others