// Purpose: implements wxSingleInstanceChecker class for Unix using
// lock files with fcntl(2) or flock(2)
// Author: Vadim Zeitlin
// Purpose: implements wxSingleInstanceChecker class for Unix using
// lock files with fcntl(2) or flock(2)
// Author: Vadim Zeitlin
- size_t count = file.Read(buf, WXSIZEOF(buf));
- if ( count == (size_t)wxInvalidOffset )
+ ssize_t count = file.Read(buf, WXSIZEOF(buf));
+ if ( count == wxInvalidOffset )
// if another instance is running, it must own the lock file - otherwise
// we have it and the locker PID is ours one
// if another instance is running, it must own the lock file - otherwise
// we have it and the locker PID is ours one