fujita/tgt — pull request #12 by NsLib (2014-06-24 07:56:47+00:00)
Title: fix shmat() return value check bug

On success shmat() returns the address of the attached shared memory segment; on error (void *) -1 is returned, and errno is set to indicate the cause of the error.