Skip to content

Commit

Permalink
fusetrace_ll.cc: handle return value of fuse_session_loop()
Browse files Browse the repository at this point in the history
Signed-off-by: Danny Al-Gaaf <[email protected]>
  • Loading branch information
dalgaaf committed Jun 3, 2013
1 parent 541320c commit 367e203
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fusetrace/fusetrace_ll.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 367e203

Please sign in to comment.