Mercurial > trustbridge > trustbridge
comparison common/linuxlockfile.c @ 1250:7ea3a4c0e2ae
This should be serious software.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Thu, 25 Sep 2014 15:53:49 +0200 |
parents | 2a1206932f53 |
children | 8362e30f7b55 |
comparison
equal
deleted
inserted
replaced
1249:014586ef8a84 | 1250:7ea3a4c0e2ae |
---|---|
69 lk.l_whence = SEEK_SET; | 69 lk.l_whence = SEEK_SET; |
70 lk.l_start = 0; | 70 lk.l_start = 0; |
71 lk.l_len = 0; | 71 lk.l_len = 0; |
72 if (fcntl(fd, F_SETLK, &lk) == -1) | 72 if (fcntl(fd, F_SETLK, &lk) == -1) |
73 { | 73 { |
74 /* Lock can not be removed?!? WTF? */ | 74 /* Lock can not be removed */ |
75 DEBUGPRINTF("Could not remove lock from pid file. STRANGE!\n"); | 75 DEBUGPRINTF("Could not remove lock from pid file.\n"); |
76 } | 76 } |
77 close(fd); | 77 close(fd); |
78 } | 78 } |
79 | 79 |
80 #endif /* Not WIN32 */ | 80 #endif /* Not WIN32 */ |