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

Pgid trigger + Process Name Rework #143

Merged
merged 33 commits into from
Sep 27, 2022

Conversation

jahabibi
Copy link
Collaborator

@jahabibi jahabibi commented Jul 1, 2022

This implements the logic to track all processes in a specified PGID group.

@jahabibi jahabibi marked this pull request as draft July 1, 2022 21:55
@jahabibi jahabibi marked this pull request as ready for review July 8, 2022 09:55
@jahabibi jahabibi marked this pull request as draft September 1, 2022 08:09

#include "Handle.h"
#include "TriggerThreadProcs.h"
#include "Process.h"
#include "Logging.h"

#define MAX_TRIGGERS 10
#define MAX_TARGET_PROCESSES 256
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't seem to be used.

@@ -412,17 +481,27 @@ int GetOptions(struct ProcDumpConfiguration *self, int argc, char *argv[])
}


if(self->ProcessId == NO_PID && !self->WaitingForProcessName){
if(self->ProcessId == NO_PID && self->ProcessGroupId == NO_PID && !self->WaitingForProcessName){
Log(error, "A valid PID or process name must be specified");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"A valid PID, PGID or process name must be specified"

@jahabibi jahabibi marked this pull request as ready for review September 19, 2022 19:58
@MarioHewardt MarioHewardt merged commit 2c3a77c into Sysinternals:master Sep 27, 2022
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.

2 participants