summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:55:15 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:55:15 +0000
commitffe9323a38b1b0150149cd38cd6ced9d34eee939 (patch)
treed519d223250e3b331ac310f51b528c74b60468f8
parent10bb1f5f242d8a475b0c4395d71214353355f304 (diff)
Use _exit in the signal handlers
Author: jgg Date: 1999-11-29 23:20:27 GMT Use _exit in the signal handlers
-rw-r--r--methods/ftp.cc6
-rw-r--r--methods/http.cc6
2 files changed, 6 insertions, 6 deletions
diff --git a/methods/ftp.cc b/methods/ftp.cc
index 6f4b00307..b9f708d80 100644
--- a/methods/ftp.cc
+++ b/methods/ftp.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// 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.
@@ -745,7 +745,7 @@ FtpMethod::FtpMethod() : pkgAcqMethod("1.0",SendConfig)
void FtpMethod::SigTerm(int)
{
if (FailFd == -1)
- exit(100);
+ _exit(100);
close(FailFd);
// Timestamp
@@ -754,7 +754,7 @@ void FtpMethod::SigTerm(int)
UBuf.modtime = FailTime;
utime(FailFile.c_str(),&UBuf);
- exit(100);
+ _exit(100);
}
/*}}}*/
// FtpMethod::Configuration - Handle a configuration message /*{{{*/
diff --git a/methods/http.cc b/methods/http.cc
index 34f2f1af5..456e7146a 100644
--- a/methods/http.cc
+++ b/methods/http.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// 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.
@@ -910,7 +910,7 @@ int HttpMethod::DealWithHeaders(FetchResult &Res,ServerState *Srv)
void HttpMethod::SigTerm(int)
{
if (FailFd == -1)
- exit(100);
+ _exit(100);
close(FailFd);
// Timestamp
@@ -919,7 +919,7 @@ void HttpMethod::SigTerm(int)
UBuf.modtime = FailTime;
utime(FailFile.c_str(),&UBuf);
- exit(100);
+ _exit(100);
}
/*}}}*/
// HttpMethod::Fetch - Fetch an item /*{{{*/