Procházet zdrojové kódy

Use _exit in the signal handlers
Author: jgg
Date: 1999-11-29 23:20:27 GMT
Use _exit in the signal handlers

Arch Librarian před 22 roky
rodič
revize
ffe9323a38
2 změnil soubory, kde provedl 6 přidání a 6 odebrání
  1. 3 3
      methods/ftp.cc
  2. 3 3
      methods/http.cc

+ 3 - 3
methods/ftp.cc

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
 // Description								/*{{{*/
-// $Id: ftp.cc,v 1.15 1999/09/05 05:41:41 jgg Exp $
+// $Id: ftp.cc,v 1.16 1999/11/29 23:20:27 jgg Exp $
 /* ######################################################################
 /* ######################################################################
 
 
    HTTP Aquire Method - This is the FTP aquire method for APT.
    HTTP Aquire Method - This is the FTP aquire method for APT.
@@ -745,7 +745,7 @@ FtpMethod::FtpMethod() : pkgAcqMethod("1.0",SendConfig)
 void FtpMethod::SigTerm(int)
 void FtpMethod::SigTerm(int)
 {
 {
    if (FailFd == -1)
    if (FailFd == -1)
-      exit(100);
+      _exit(100);
    close(FailFd);
    close(FailFd);
    
    
    // Timestamp
    // Timestamp
@@ -754,7 +754,7 @@ void FtpMethod::SigTerm(int)
    UBuf.modtime = FailTime;
    UBuf.modtime = FailTime;
    utime(FailFile.c_str(),&UBuf);
    utime(FailFile.c_str(),&UBuf);
    
    
-   exit(100);
+   _exit(100);
 }
 }
 									/*}}}*/
 									/*}}}*/
 // FtpMethod::Configuration - Handle a configuration message		/*{{{*/
 // FtpMethod::Configuration - Handle a configuration message		/*{{{*/

+ 3 - 3
methods/http.cc

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
 // Description								/*{{{*/
-// $Id: http.cc,v 1.39 1999/10/18 03:18:40 jgg Exp $
+// $Id: http.cc,v 1.40 1999/11/29 23:20:27 jgg Exp $
 /* ######################################################################
 /* ######################################################################
 
 
    HTTP Aquire Method - This is the HTTP aquire method for APT.
    HTTP Aquire Method - This is the HTTP aquire method for APT.
@@ -910,7 +910,7 @@ int HttpMethod::DealWithHeaders(FetchResult &Res,ServerState *Srv)
 void HttpMethod::SigTerm(int)
 void HttpMethod::SigTerm(int)
 {
 {
    if (FailFd == -1)
    if (FailFd == -1)
-      exit(100);
+      _exit(100);
    close(FailFd);
    close(FailFd);
    
    
    // Timestamp
    // Timestamp
@@ -919,7 +919,7 @@ void HttpMethod::SigTerm(int)
    UBuf.modtime = FailTime;
    UBuf.modtime = FailTime;
    utime(FailFile.c_str(),&UBuf);
    utime(FailFile.c_str(),&UBuf);
    
    
-   exit(100);
+   _exit(100);
 }
 }
 									/*}}}*/
 									/*}}}*/
 // HttpMethod::Fetch - Fetch an item					/*{{{*/
 // HttpMethod::Fetch - Fetch an item					/*{{{*/