Call shm(destroy) on the mmd shared memory area right after creating it.
authorAndre Noll <maan@systemlinux.org>
Tue, 3 Feb 2009 20:41:08 +0000 (21:41 +0100)
committerAndre Noll <maan@systemlinux.org>
Tue, 3 Feb 2009 20:41:08 +0000 (21:41 +0100)
commitdf51fc92275195f2cbcf95fff2cb2b0fb21433f4
tree8aa28d09ca427c19710b4d02d77f24aad2b5f8ef
parent56955f95584f51709320262f7d2e0ea79301d346
Call shm(destroy) on the mmd shared memory area right after creating it.

It will only be destroyed when the last reference is gone, which
is when para_server exits. This allows to get rid of a global
variable. Moreover, the shared memory area will be destroyed even
in case para_server crashes.
server.c