setsid - Operation not permitted
- 
					
					
					
					
 Hallo, ich bastel gerade an einem kleinen Dämonen auf meinem RH 7.2, sobald ich jedoch versuche eine neue Session zu starten via setsid() bekomme ich von dieser Funktion -1 zurück gelifert. perror("setsid") liefert mir dann als Meldung setsid: Operation not permitted. Kann mir jemand sagen woher der Fehler kommt ? Mfg 
 Chris
 
- 
					
					
					
					
 ERRORS 
 On error, -1 will be returned. The only error which can
 happen is EPERM. It is returned when the process group ID
 of any process equals the PID of the calling process.
 Thus, in particular, setsid fails if the calling process
 is already a process group leader.