diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2006-06-03 23:14:09 +0000 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2006-06-03 23:14:09 +0000 |
commit | 8bc180b7d1089ca7fecf3420367b29f4c21125ad (patch) | |
tree | 4099b5bc6997c7a7c38cc113bcc69e2536c20935 /TraceScreen.c | |
parent | 57bd892b37cdaae11b99b916dbb240870799e18d (diff) |
Display error message when strace is not available.
Mark autogen.sh executable in svn.
Diffstat (limited to 'TraceScreen.c')
-rw-r--r-- | TraceScreen.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/TraceScreen.c b/TraceScreen.c index e92d0c9c..c6967b13 100644 --- a/TraceScreen.c +++ b/TraceScreen.c @@ -77,6 +77,8 @@ void TraceScreen_run(TraceScreen* this) { fcntl(fdpair[1], F_SETFL, O_NONBLOCK); sprintf(buffer, "%d", this->process->pid); execlp("strace", "strace", "-p", buffer, NULL); + const char* message = "Could not execute 'strace'. Please make sure it is available in your $PATH."; + write(fdpair[1], message, strlen(message)); exit(1); } fcntl(fdpair[0], F_SETFL, O_NONBLOCK); |