summaryrefslogtreecommitdiffstats
path: root/iutil.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-07-06 03:53:54 +0000
committerMatt Wilson <msw@redhat.com>2001-07-06 03:53:54 +0000
commit5ff21c7cb43dc8ce0a19d768c6fbadb3c7daedac (patch)
treed03ba5f602ba2e978bd86cb21db95cfff41e4e42 /iutil.py
parentc43ea8581fba1789aade518540a9fa55e7590adf (diff)
downloadanaconda-5ff21c7cb43dc8ce0a19d768c6fbadb3c7daedac.tar.gz
anaconda-5ff21c7cb43dc8ce0a19d768c6fbadb3c7daedac.tar.xz
anaconda-5ff21c7cb43dc8ce0a19d768c6fbadb3c7daedac.zip
make syslog a global object and don't kill it, let init kill it later. #47556
Diffstat (limited to 'iutil.py')
-rw-r--r--iutil.py26
1 files changed, 0 insertions, 26 deletions
diff --git a/iutil.py b/iutil.py
index a28ab1e8d..af03b366c 100644
--- a/iutil.py
+++ b/iutil.py
@@ -370,30 +370,4 @@ def swapAmount():
mem = int(long (fields[1]) / 1024)
return mem
-
-class InstSyslog:
- def __init__ (self, root, log):
- self.pid = os.fork ()
- if not self.pid:
- # look on PYTHONPATH first, so we use updated anaconda
- path = None
- if os.environ.has_key('PYTHONPATH'):
- for f in string.split(os.environ['PYTHONPATH'], ":"):
- if os.access (f+"/anaconda", os.X_OK):
- path = f+"/anaconda"
- break
-
- if not path:
- if os.access ("./anaconda", os.X_OK):
- path = "./anaconda"
- elif os.access ("/usr/bin/anaconda.real", os.X_OK):
- path = "/usr/bin/anaconda.real"
- else:
- path = "/usr/bin/anaconda"
-
- os.execv (path, ("syslogd", "--syslogd", root, log))
-
- def __del__ (self):
- os.kill (self.pid, 15)
- os.wait (self.pid)