diff options
author | Marc Laukien <marc@zeroc.com> | 2004-01-13 19:49:07 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2004-01-13 19:49:07 +0000 |
commit | 2bd2b9bd934efb60e7e4d43e3e52c2a7ee99aef7 (patch) | |
tree | 5a8a00113cde0733578cadd9fcba78522bcb621d /cpp/test/IceStorm/single/Subscriber.cpp | |
parent | bug fix in string sequence unmarshaling (diff) | |
download | ice-2bd2b9bd934efb60e7e4d43e3e52c2a7ee99aef7.tar.bz2 ice-2bd2b9bd934efb60e7e4d43e3e52c2a7ee99aef7.tar.xz ice-2bd2b9bd934efb60e7e4d43e3e52c2a7ee99aef7.zip |
fix
Diffstat (limited to 'cpp/test/IceStorm/single/Subscriber.cpp')
-rw-r--r-- | cpp/test/IceStorm/single/Subscriber.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/cpp/test/IceStorm/single/Subscriber.cpp b/cpp/test/IceStorm/single/Subscriber.cpp index f90dc37143f..741e60c7196 100644 --- a/cpp/test/IceStorm/single/Subscriber.cpp +++ b/cpp/test/IceStorm/single/Subscriber.cpp @@ -56,12 +56,9 @@ private: void createLock(const string& name) { -#ifdef _WIN32 - int ret = _open(name.c_str(), O_CREAT | O_WRONLY | O_EXCL); -#else - int ret = open(name.c_str(), O_CREAT | O_WRONLY | O_EXCL); -#endif - assert(ret != -1); + int fd = open(name.c_str(), O_CREAT | O_WRONLY | O_EXCL, 0777); + assert(fd != -1); + close(fd); } void |