|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r53382 - trunk/boost/interprocess
From: ghost_at_[hidden]
Date: 2009-05-29 04:39:45
Author: vladimir_prus
Date: 2009-05-29 04:39:44 EDT (Fri, 29 May 2009)
New Revision: 53382
URL: http://svn.boost.org/trac/boost/changeset/53382
Log:
Fix != vs. == mismatch.
The remove method is documented to return false on error and
true on success. The shm_unlink functions returns 0 on success.
Therefore, we should return "shm_unlink_result == 0".
Text files modified:
trunk/boost/interprocess/shared_memory_object.hpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: trunk/boost/interprocess/shared_memory_object.hpp
==============================================================================
--- trunk/boost/interprocess/shared_memory_object.hpp (original)
+++ trunk/boost/interprocess/shared_memory_object.hpp 2009-05-29 04:39:44 EDT (Fri, 29 May 2009)
@@ -307,7 +307,7 @@
#else
detail::tmp_filename(filename, file_str);
#endif
- return 0 != shm_unlink(file_str.c_str());
+ return 0 == shm_unlink(file_str.c_str());
}
catch(...){
return false;
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk