|
|
|
@ -90,7 +90,9 @@ bool TraceScreen_forkTracer(TraceScreen* this) { |
|
|
|
|
|
|
|
|
|
|
|
char buffer[32] = {0}; |
|
|
|
char buffer[32] = {0}; |
|
|
|
xSnprintf(buffer, sizeof(buffer), "%d", this->super.process->pid); |
|
|
|
xSnprintf(buffer, sizeof(buffer), "%d", this->super.process->pid); |
|
|
|
execlp("strace", "strace", "-T", "-tt", "-s", "512", "-p", buffer, NULL); |
|
|
|
// Use of NULL in variadic functions must have a pointer cast.
|
|
|
|
|
|
|
|
// The NULL constant is not required by standard to have a pointer type.
|
|
|
|
|
|
|
|
execlp("strace", "strace", "-T", "-tt", "-s", "512", "-p", buffer, (char *)NULL); |
|
|
|
|
|
|
|
|
|
|
|
// Should never reach here, unless execlp fails ...
|
|
|
|
// Should never reach here, unless execlp fails ...
|
|
|
|
const char* message = "Could not execute 'strace'. Please make sure it is available in your $PATH."; |
|
|
|
const char* message = "Could not execute 'strace'. Please make sure it is available in your $PATH."; |
|
|
|
|