On 10/24/2012 02:06 PM, Andrew Vagin wrote: > getsid is required _XOPEN_SOURCE_EXTENDED, > it's enabled if __GNU_SOURCE is defined. > > session00.c:92: error: implicit declaration of function 'getsid' Applied. Don't forget SOB line.