Skip to content

Commit

Permalink
[qmf] Close messageserver lock fd directly without attempting to unlo…
Browse files Browse the repository at this point in the history
…ck the file.
  • Loading branch information
Valerio Valerio committed Mar 12, 2014
1 parent c696f6b commit 1a95363
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions qmf/src/libraries/qmfclient/support/qmailnamespace.cpp
Expand Up @@ -190,19 +190,9 @@ bool QMail::fileUnlock(int id)

return false;
#else
struct flock fl;

fl.l_type = F_UNLCK;
fl.l_whence = SEEK_SET;
fl.l_start = 0;
fl.l_len = 0;

int result = -1;

result = ::fcntl(id,F_SETLK, &fl);
if (result == -1)
return false;

result = ::close(id);
if (result == -1)
return false;
Expand Down

0 comments on commit 1a95363

Please sign in to comment.