[libgtop] Don't error out when running on a different release than built on
- From: Jasper Lievisse Adriaanse <jasperla src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgtop] Don't error out when running on a different release than built on
- Date: Mon, 1 Apr 2013 11:36:54 +0000 (UTC)
commit a44392d948535a4f1a3a5906f0c4b3fe5430a167
Author: Jasper Lievisse Adriaanse <jasper humppa nl>
Date: Mon Apr 1 13:35:24 2013 +0200
Don't error out when running on a different release than built on
https://bugzilla.gnome.org/show_bug.cgi?id=653177
src/daemon/server.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/daemon/server.c b/src/daemon/server.c
index 5553423..6dfb5b4 100644
--- a/src/daemon/server.c
+++ b/src/daemon/server.c
@@ -90,11 +90,13 @@ main(int argc, char *argv[])
if (strcmp (uts.sysname, LIBGTOP_COMPILE_SYSTEM) ||
strcmp (uts.release, LIBGTOP_COMPILE_RELEASE) ||
strcmp (uts.machine, LIBGTOP_COMPILE_MACHINE)) {
- fprintf (stderr, "Can only run on %s %s %s\n",
+ fprintf (stderr, "This libgtop was compiled on %s %s %s\n",
LIBGTOP_COMPILE_SYSTEM,
LIBGTOP_COMPILE_RELEASE,
LIBGTOP_COMPILE_MACHINE);
- _exit (1);
+ fprintf (stderr, "If you see strange problems caused by it,\n");
+ fprintf (stderr, "you should recompile libgtop and dependent "
+ "applications.\n");
}
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]