When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
3 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
pid_t pid;
pid = fork();
if (pid == 0) { // Child process
dup2(STDERR_FILENO, STDOUT_FILENO);
ptrace(PTRACE_TRACEME, 0, NULL, NULL);
args[argNumber] = NULL;
char *temp[argNumber-1];
for(int i = 1; i < argNumber+1; i++) temp[i-1] = args[i];
raise(SIGSTOP);
(execvp(args[1], temp) < 0);
} else { // Parent process
}
I verified that the arguments are correct, and yeah I pushed a signal continue in a different command after, but when I move the execvp above the ptrace it works fine