-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Adding process_open_pipes table #6142
Conversation
0d38db7
to
2ab1023
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few notes throughout:
- Please use explicit
{}
around new scopes to help prevent future mistakes. - In some places we should use C++11 patterns instead of C, no raw pointers or C arrays.
- Logging does not need ending newlines and we should only use
DLOG
orLOG
, notperror
orprintf
. - Check if we need to update BUCK as well.
- Should we add optimization to the implementation to be able to handle
pid = N
?
Sorry if I'm intruding, but a couple of comments on the review:
|
Thanks guys for your reviews. I've made the suggested changes. |
Regarding optimization to handle |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the iteration here! Do you mind taking another pass at the testing code? I left a few comments but there might be more that can be improved.
Thanks @theopolis. Will do. |
Done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, thanks for the updates! I promise this is my last round of nitpicks 💃
Also curious if @Smjert can take another look?
:) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also keep the same naming convention we have for function in the test case.
Thanks @Smjert! Done. |
c0a4f4c
to
56c8b74
Compare
@theopolis All changes have been made to this as per reviews. If it looks good to you, could you please approve/merge this? |
Thanks! |
This table lists a process' open named and anonymous pipes with endpoints resolved.
Example output: