projects
/
umurmur.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3ad504
)
deinitialize shm when ftruncate fails
author
Felix Morgner
<felix.morgner@gmail.com>
Thu, 5 Feb 2015 09:53:05 +0000
(10:53 +0100)
committer
Felix Morgner
<felix.morgner@gmail.com>
Thu, 5 Feb 2015 09:55:38 +0000
(10:55 +0100)
src/sharedmemory.c
patch
|
blob
|
history
diff --git
a/src/sharedmemory.c
b/src/sharedmemory.c
index fd41261f49918b3a8d8fd9ca221001a4e449dd89..f043f08de6010a9a0f4252f55fc25c74b1afe566 100644
(file)
--- a/
src/sharedmemory.c
+++ b/
src/sharedmemory.c
@@
-27,6
+27,7
@@
void Sharedmemory_init( int bindport, int bindport6 )
\r
if( ftruncate( shm_fd, shmtotal_size ) == -1 )
\r
{
\r
+ Sharedmemory_deinit();
\r
Log_fatal( "SHM_API: ftruncate : %s\n", strerror(errno));
\r
exit(EXIT_FAILURE);
\r
}
\r