diff options
author | Matt Wilson <msw@redhat.com> | 2001-07-06 03:53:54 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-07-06 03:53:54 +0000 |
commit | 5ff21c7cb43dc8ce0a19d768c6fbadb3c7daedac (patch) | |
tree | d03ba5f602ba2e978bd86cb21db95cfff41e4e42 /iutil.py | |
parent | c43ea8581fba1789aade518540a9fa55e7590adf (diff) | |
download | anaconda-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.py | 26 |
1 files changed, 0 insertions, 26 deletions
@@ -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) |