]> git.saurik.com Git - apt.git/commitdiff
Havocs _exit
authorArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:52:15 +0000 (16:52 +0000)
committerArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:52:15 +0000 (16:52 +0000)
Author: jgg
Date: 1998-12-14 06:54:41 GMT
Havocs _exit

apt-pkg/acquire-worker.cc
apt-pkg/deb/deblistparser.cc
apt-pkg/deb/dpkgpm.cc

index 28f8408b6ab8b1c01d879be09bda4b6a9e5f8368..06a4460d10d4c1611c7d00875fdf4db5b6fbb567 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: acquire-worker.cc,v 1.15 1998/12/05 01:45:20 jgg Exp $
+// $Id: acquire-worker.cc,v 1.16 1998/12/14 06:54:41 jgg Exp $
 /* ######################################################################
 
    Acquire Worker 
@@ -136,7 +136,7 @@ bool pkgAcquire::Worker::Start()
       Args[1] = 0;
       execv(Args[0],(char **)Args);
       cerr << "Failed to exec method " << Args[0] << endl;
-      exit(100);
+      _exit(100);
    }
 
    // Fix up our FDs
index 0e5be12660189c0c2fdf531f7e63e235cb33adc7..585006451f0df7ccaba2c4f9de97964d1a91675e 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: deblistparser.cc,v 1.11 1998/12/14 02:23:47 jgg Exp $
+// $Id: deblistparser.cc,v 1.12 1998/12/14 06:54:43 jgg Exp $
 /* ######################################################################
    
    Package Cache Generator - Generator for the cache structure.
@@ -468,7 +468,12 @@ bool debListParser::LoadReleaseInfo(pkgCache::PkgFileIterator FileI,
       FileI->Label = WriteUniqString(Start,Stop - Start);
    if (Section.Find("Architecture",Start,Stop) == true)
       FileI->Architecture = WriteUniqString(Start,Stop - Start);
-
+   
+   unsigned long Fl = 0;
+   if (Section.FindFlag("NotAutomatic",Fl,1) == false)
+      _error->Warning("Bad NotAutomatic flag");
+   FileI->NotAutomatic = Fl;
+   
    return !_error->PendingError();
 }
                                                                        /*}}}*/
index 228e45c48530647a26ff742a0976a4c294607419..b9c8cf968832dbb5e664a6b66d6056f0ccb5c6a5 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: dpkgpm.cc,v 1.4 1998/11/23 07:32:21 jgg Exp $
+// $Id: dpkgpm.cc,v 1.5 1998/12/14 06:54:44 jgg Exp $
 /* ######################################################################
 
    DPKG Package Manager - Provide an interface to dpkg
@@ -171,7 +171,7 @@ bool pkgDPkgPM::Go()
         signal(SIGTSTP,SIG_DFL);
 
         if (chdir(_config->FindDir("Dir::Cache::Archives").c_str()) != 0)
-           exit(100);
+           _exit(100);
         
         // Close all of our FDs - just in case
         for (int K = 3; K != 40; K++)
@@ -179,23 +179,23 @@ bool pkgDPkgPM::Go()
 
         int Flags,dummy;
         if ((Flags = fcntl(STDIN_FILENO,F_GETFL,dummy)) < 0)
-           exit(100);
+           _exit(100);
         
         // Discard everything in stdin before forking dpkg
         if (fcntl(STDIN_FILENO,F_SETFL,Flags | O_NONBLOCK) < 0)
-           exit(100);
+           _exit(100);
         
         while (read(STDIN_FILENO,&dummy,1) == 1);
         
         if (fcntl(STDIN_FILENO,F_SETFL,Flags & (~(long)O_NONBLOCK)) < 0)
-           exit(100);
+           _exit(100);
 
         /* No Job Control Stop Env is a magic dpkg var that prevents it
            from using sigstop */
         setenv("DPKG_NO_TSTP","yes",1);
         execvp(Args[0],(char **)Args);
         cerr << "Could not exec dpkg!" << endl;
-        exit(100);
+        _exit(100);
       }      
 
       // Wait for dpkg