File: rawdetach.cc

package info (click to toggle)
bobcat 6.02.02-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 13,960 kB
  • sloc: cpp: 18,954; fortran: 5,617; makefile: 2,787; sh: 659; perl: 401; ansic: 26
file content (10 lines) | stat: -rw-r--r-- 245 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
#include "sharedsegment.ih"

void SharedSegment::rawDetach(void *sharedPtr, bool requireOK)
{
    if (sharedPtr == 0 || shmdt(sharedPtr) == 0)
        return;

    if (requireOK)
        throw Exception{} << "Failed to detach shared segment";
}