summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2006-06-03 23:14:09 +0000
committerHisham Muhammad <hisham@gobolinux.org>2006-06-03 23:14:09 +0000
commit8bc180b7d1089ca7fecf3420367b29f4c21125ad (patch)
tree4099b5bc6997c7a7c38cc113bcc69e2536c20935
parent57bd892b37cdaae11b99b916dbb240870799e18d (diff)
Display error message when strace is not available.
Mark autogen.sh executable in svn.
-rw-r--r--TraceScreen.c2
-rwxr-xr-x[-rw-r--r--]autogen.sh0
2 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);
diff --git a/autogen.sh b/autogen.sh
index 602c151a..602c151a 100644..100755
--- a/autogen.sh
+++ b/autogen.sh

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