Changeset 516 for trunk


Ignore:
Timestamp:
Oct 27, 2014, 5:45:38 PM (10 years ago)
Author:
djay
Message:

Call exit from the child processes and make sure to remove zombies from process list.

Location:
trunk/zoo-project/zoo-kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-kernel/zoo_loader.c

    r510 r516  
    356356  runRequest(&tmpMap);
    357357
    358   /**
    359    * Required but can't be made after executing a process using POST requests.
    360    */
    361   if(/*strncasecmp(cgiRequestMethod,"post",4)!=0 && count(tmpMap)!=1 && */tmpMap!=NULL){
     358  if(tmpMap!=NULL){
    362359    freeMap(&tmpMap);
    363360    free(tmpMap);
  • trunk/zoo-project/zoo-kernel/zoo_service_loader.c

    r514 r516  
    666666 
    667667#ifndef USE_GDB
    668   (void) signal(SIGSEGV,sig_handler);
    669   (void) signal(SIGTERM,sig_handler);
    670   (void) signal(SIGINT,sig_handler);
    671   (void) signal(SIGILL,sig_handler);
    672   (void) signal(SIGFPE,sig_handler);
    673   (void) signal(SIGABRT,sig_handler);
     668  signal(SIGCHLD, SIG_IGN);
     669  signal(SIGSEGV,sig_handler);
     670  signal(SIGTERM,sig_handler);
     671  signal(SIGINT,sig_handler);
     672  signal(SIGILL,sig_handler);
     673  signal(SIGFPE,sig_handler);
     674  signal(SIGABRT,sig_handler);
    674675#endif
    675676
     
    27162717   */
    27172718#ifndef USE_GDB
    2718   (void) signal(SIGSEGV,donothing);
    2719   (void) signal(SIGTERM,donothing);
    2720   (void) signal(SIGINT,donothing);
    2721   (void) signal(SIGILL,donothing);
    2722   (void) signal(SIGFPE,donothing);
    2723   (void) signal(SIGABRT,donothing);
     2719  signal(SIGSEGV,donothing);
     2720  signal(SIGTERM,donothing);
     2721  signal(SIGINT,donothing);
     2722  signal(SIGILL,donothing);
     2723  signal(SIGFPE,donothing);
     2724  signal(SIGABRT,donothing);
    27242725#endif
    27252726  if(((int)getpid())!=cpid || cgiSid!=NULL){
     
    27722773#endif
    27732774
     2775  if(((int)getpid())!=cpid || cgiSid!=NULL){
     2776    exit(0);
     2777  }
     2778
    27742779  return 0;
    27752780}
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png