From: trz Date: Fri, 22 Sep 2006 14:49:17 +0000 (+0000) Subject: clean up if stp_check fails X-Git-Tag: release-0.5.10~51 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=b78daaff85e81dc2a08b4f920ed8c9c8500b5020;p=systemtap.git clean up if stp_check fails --- diff --git a/runtime/stpd/ChangeLog b/runtime/stpd/ChangeLog index d804d2859..a8eccab16 100644 --- a/runtime/stpd/ChangeLog +++ b/runtime/stpd/ChangeLog @@ -1,3 +1,7 @@ +2006-09-22 Tom Zanussi + + * librelay.c (init_relayfs): Cleanup if stp_check fails. + 2006-09-19 Tom Zanussi * librelay.c (init_relayfs): Add debugfs path to relay files and diff --git a/runtime/stpd/librelay.c b/runtime/stpd/librelay.c index fb6002809..33dc20fab 100644 --- a/runtime/stpd/librelay.c +++ b/runtime/stpd/librelay.c @@ -417,7 +417,7 @@ int init_relayfs(void) if (WIFEXITED(wstat) && WEXITSTATUS(wstat)) { perror (stp_check); fprintf(stderr, "Could not execute %s\n", stp_check); - exit(1); + return -1; } if (statfs("/mnt/relay", &st) == 0 && (int) st.f_type == (int) RELAYFS_MAGIC)