Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

daemon process created through JNI  RSS feed

Vijay Mahendru
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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()
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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!