From b78daaff85e81dc2a08b4f920ed8c9c8500b5020 Mon Sep 17 00:00:00 2001 From: trz Date: Fri, 22 Sep 2006 14:49:17 +0000 Subject: clean up if stp_check fails --- runtime/stpd/ChangeLog | 4 ++++ runtime/stpd/librelay.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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 + + * 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 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) -- cgit