Hi all,
I have made server, which is written in
Java, a Daemon process using native method call on IRIX. Server starts up fine. When client process makes some some service request, server is crashing with Segment violation message.
Same server works fine if I start in using & (ampersand)
Code in side the native function is :
int Daemon()
{
switch(fork())
{
case 0: break;
case -1: return -1;
default: _exit(0);
}
if(setsid() < 0)
return -1;
}
Error Message:
SIGSEGV 11* segmetation violation
si_signo[11] SIGSEGV 11* segmentation violation
si_errno[0] : Error 0