From 1a4276c511240d51e1956d157655d219dc8254fc Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 21 Mar 2012 21:33:04 +0000 Subject: WaE: ignoring lockf return value --- shell/source/unix/sysshell/recently_used_file.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'shell') 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_); } -- cgit