diff options
author | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-06-03 15:22:58 +0200 |
---|---|---|
committer | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-06-03 15:22:58 +0200 |
commit | 367e203f9ad7228412c8283aefbdad50fb89d577 (patch) | |
tree | 181cbcf724a6ee454c646099614024a7f6315196 /fusetrace | |
parent | mds/MDCache.cc: reduce scope of 'CDir *dir' in _create_system_file_finish() (diff) | |
download | ceph-367e203f9ad7228412c8283aefbdad50fb89d577.tar.xz ceph-367e203f9ad7228412c8283aefbdad50fb89d577.zip |
fusetrace_ll.cc: handle return value of fuse_session_loop()
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Diffstat (limited to 'fusetrace')
-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); } |