libqb/include
Chrissie Caulfield 75ab31bdd0
ipc_shm: Don't truncate SHM files of an active server (#307)
* ipc_shm: Don't truncate SHM files of an active server

I've put in an extra check so that clients don't truncate the
SHM file if the server still exists. Sadly on FreeBSD we can't
get the server PID for the client (unless someone has a patch handy!)
so we still do the truncate when disconnected. As a backstop (and also
to cover the BSD issue) I've added a SIGBUS trap to the server shutdown
so that it doesn't cause a server crash.

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
Reviewed by: Jan Friesse <jfriesse@redhat.com>
2018-04-20 09:48:04 +01:00
..
qb ipc_shm: Don't truncate SHM files of an active server (#307) 2018-04-20 09:48:04 +01:00
.gitignore Cleanup the .gitignore files 2012-05-09 21:43:58 +10:00
Makefile.am build: include: fix extra trailing newline 2016-03-10 22:44:49 +01:00
os_base.h Fix comment typo (#296) 2018-03-20 13:12:06 +00:00
tlist.h Unify to QB_TRUE/QB_FALSE a boolean value 2013-01-11 02:01:06 +09:00