diff options
author | trz <trz> | 2006-09-22 14:49:17 +0000 |
---|---|---|
committer | trz <trz> | 2006-09-22 14:49:17 +0000 |
commit | b78daaff85e81dc2a08b4f920ed8c9c8500b5020 (patch) | |
tree | e84ab015733e9d813f7d3f793552ed727bad6668 /runtime | |
parent | cb35348ce58d44c8a68ed889412a39dab1bc8292 (diff) | |
download | systemtap-steved-b78daaff85e81dc2a08b4f920ed8c9c8500b5020.tar.gz systemtap-steved-b78daaff85e81dc2a08b4f920ed8c9c8500b5020.tar.xz systemtap-steved-b78daaff85e81dc2a08b4f920ed8c9c8500b5020.zip |
clean up if stp_check fails
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/stpd/ChangeLog | 4 | ||||
-rw-r--r-- | runtime/stpd/librelay.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/runtime/stpd/ChangeLog b/runtime/stpd/ChangeLog index d804d285..a8eccab1 100644 --- a/runtime/stpd/ChangeLog +++ b/runtime/stpd/ChangeLog @@ -1,3 +1,7 @@ +2006-09-22 Tom Zanussi <zanussi@us.ibm.com> + + * librelay.c (init_relayfs): Cleanup if stp_check fails. + 2006-09-19 Tom Zanussi <zanussi@us.ibm.com> * librelay.c (init_relayfs): Add debugfs path to relay files and diff --git a/runtime/stpd/librelay.c b/runtime/stpd/librelay.c index fb600280..33dc20fa 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) |