diff options
Diffstat (limited to 'fusetrace/fusetrace_ll.cc')
-rw-r--r-- | fusetrace/fusetrace_ll.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fusetrace/fusetrace_ll.cc b/fusetrace/fusetrace_ll.cc index f9e90dc4894..eb7100a867f 100644 --- a/fusetrace/fusetrace_ll.cc +++ b/fusetrace/fusetrace_ll.cc @@ -1170,9 +1170,11 @@ int main(int argc, char *argv[]) NULL); if (se != NULL) { if (fuse_set_signal_handlers(se) != -1) { - int err = -1; fuse_session_add_chan(se, ch); - err = fuse_session_loop(se); + if (fuse_session_loop(se) <= -1) { + cout << "Failed fuse_session_loop() call." << endl; + return 1; + } fuse_remove_signal_handlers(se); fuse_session_remove_chan(ch); } |