Add a delimiter before "TracerPid"
Future-proofing against a future version of the Linux kernel adding a "FooTracerPid:" before the TracerPid entry. Change-Id: I42e7ef1a481840699a8dffff140347457902900f Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
This commit is contained in:
parent
a0575a85b7
commit
2187f0e7b0
@ -2503,7 +2503,7 @@ static bool debuggerPresent()
|
||||
return false;
|
||||
}
|
||||
buffer[size] = 0;
|
||||
const char tracerPidToken[] = "TracerPid:";
|
||||
const char tracerPidToken[] = "\nTracerPid:";
|
||||
char *tracerPid = strstr(buffer, tracerPidToken);
|
||||
if (!tracerPid) {
|
||||
close(fd);
|
||||
|
Loading…
Reference in New Issue
Block a user