summaryrefslogtreecommitdiffstats
path: root/TraceScreen.c
diff options
context:
space:
mode:
authorMario Harjac <m@harja.ch>2019-04-29 15:17:05 +0200
committerMario Harjac <m@harja.ch>2019-04-29 15:17:05 +0200
commitc3fadf6b695645175c557c3fc45c4c67137f4952 (patch)
treeedf2b105d7a5c3ccfb76bfc97b3a2ff60dac583d /TraceScreen.c
parent402e46bb82964366746b86d77eb5afa69c279539 (diff)
Add timestamps to the strace screen
Diffstat (limited to 'TraceScreen.c')
-rw-r--r--TraceScreen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/TraceScreen.c b/TraceScreen.c
index 91f71ae8..b4b8436b 100644
--- a/TraceScreen.c
+++ b/TraceScreen.c
@@ -101,7 +101,7 @@ bool TraceScreen_forkTracer(TraceScreen* this) {
int ok = fcntl(this->fdpair[1], F_SETFL, O_NONBLOCK);
if (ok != -1) {
xSnprintf(buffer, sizeof(buffer), "%d", this->super.process->pid);
- execlp("strace", "strace", "-s", "512", "-p", buffer, NULL);
+ execlp("strace", "strace", "-T", "-tt", "-s", "512", "-p", buffer, NULL);
}
const char* message = "Could not execute 'strace'. Please make sure it is available in your $PATH.";
ssize_t written = write(this->fdpair[1], message, strlen(message));

© 2014-2024 Faster IT GmbH | imprint | privacy policy