logo       

nagios/base nagios.c,1.69,1.70 utils.c,1.91,1.92: msg#00012

Subject: nagios/base nagios.c,1.69,1.70 utils.c,1.91,1.92
Update of /cvsroot/nagios/nagios/base
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16521/base

Modified Files:
        nagios.c utils.c 
Log Message:
Core dump fixes, embedded Perl changes, new mini_epn

Index: nagios.c
===================================================================
RCS file: /cvsroot/nagios/nagios/base/nagios.c,v
retrieving revision 1.69
retrieving revision 1.70
diff -C2 -d -r1.69 -r1.70
*** nagios.c    17 Jan 2005 17:35:31 -0000      1.69
--- nagios.c    20 Jan 2005 02:12:12 -0000      1.70
***************
*** 9,13 ****
   *
   * First Written:   01-28-1999 (start of development)
!  * Last Modified:   01-17-2005
   *
   * Description:
--- 9,13 ----
   *
   * First Written:   01-28-1999 (start of development)
!  * Last Modified:   01-19-2005
   *
   * Description:
***************
*** 150,154 ****
  
  int             daemon_mode=FALSE;
! int             daemon_dumps_core=FALSE;
  
  int             ipc_pipe[2];
--- 150,154 ----
  
  int             daemon_mode=FALSE;
! int             daemon_dumps_core=TRUE;
  
  int             ipc_pipe[2];

Index: utils.c
===================================================================
RCS file: /cvsroot/nagios/nagios/base/utils.c,v
retrieving revision 1.91
retrieving revision 1.92
diff -C2 -d -r1.91 -r1.92
*** utils.c     14 Jan 2005 15:09:28 -0000      1.91
--- utils.c     20 Jan 2005 02:12:13 -0000      1.92
***************
*** 4,8 ****
   *
   * Copyright (c) 1999-2005 Ethan Galstad (nagios@xxxxxxxxxx)
!  * Last Modified:   01-14-2005
   *
   * License:
--- 4,8 ----
   *
   * Copyright (c) 1999-2005 Ethan Galstad (nagios@xxxxxxxxxx)
!  * Last Modified:   01-19-2005
   *
   * License:
***************
*** 3236,3240 ****
        signal(SIGTERM,sighandler);
        signal(SIGHUP,sighandler);
!       signal(SIGSEGV,sighandler);
  
  #ifdef DEBUG0
--- 3236,3243 ----
        signal(SIGTERM,sighandler);
        signal(SIGHUP,sighandler);
! #if !defined(DEBUG0) && !defined(DEBUG1) && !defined(DEBUG2) && 
!defined(DEBUG3) && !defined(DEBUG4) && !defined(DEBUG5)
!       if(daemon_dumps_core==FALSE || daemon_mode==FALSE)
!               signal(SIGSEGV,sighandler);
! #endif
  
  #ifdef DEBUG0
***************
*** 3376,3379 ****
--- 3379,3383 ----
        struct flock lock;
        char temp_buffer[MAX_INPUT_BUFFER];
+       char *homedir=NULL;
  
  #ifdef RLIMIT_CORE
***************
*** 3381,3385 ****
  #endif
  
!       chdir("/");             /* change working directory */
  
        umask(S_IWGRP|S_IWOTH);
--- 3385,3394 ----
  #endif
  
!       /* change working directory. scuttle home if we're dumping core */
!       homedir=getenv("HOME");
!       if(daemon_dumps_core==TRUE && homedir!=NULL)
!               chdir(homedir);
!       else
!               chdir("/");
  
        umask(S_IWGRP|S_IWOTH);



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
linux.arklinux....    user-groups.lin...    kde.usability/2...    ietf.ipp/2002-0...    mail.spam.spamc...    os.netbsd.devel...    audio.cd-record...    text.unicode.de...    php.documentati...    games.fps.halfl...    window-managers...    suse.oracle.gen...    bug-tracking.gn...    video.dvdrip.us...    xfree86.cvs/200...    java.netbeans.m...    network.argus/2...    culture.sf.kill...    debian.ports.al...    freebsd.questio...    qplus.devel/200...    handhelds.palm....   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe