• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

daemon process created through JNI

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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()
{
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
 
Grow your own food... or this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic