summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-03-21 21:33:04 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-03-22 12:26:41 +0000
commit1a4276c511240d51e1956d157655d219dc8254fc (patch)
tree884e5a7f85cf6276d8332bc27d365ea6ecb2c991 /shell
parent7dd0898578f9825fe470d58ed2d0e5bc155b66c7 (diff)
WaE: ignoring lockf return value
Diffstat (limited to 'shell')
-rw-r--r--shell/source/unix/sysshell/recently_used_file.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/source/unix/sysshell/recently_used_file.cxx b/shell/source/unix/sysshell/recently_used_file.cxx
index 0336a7f72d57..cf27852b47c0 100644
--- a/shell/source/unix/sysshell/recently_used_file.cxx
+++ b/shell/source/unix/sysshell/recently_used_file.cxx
@@ -100,7 +100,8 @@ recently_used_file::recently_used_file() :
//------------------------------------------------
recently_used_file::~recently_used_file()
{
- lockf(fileno(file_), F_ULOCK, 0);
+ int ret = lockf(fileno(file_), F_ULOCK, 0);
+ SAL_WARN_IF(ret != 0, "shell", "cannot unlock recently unused file");
fclose(file_);
}