diff options
author | Hans de Goede <hdegoede@redhat.com> | 2008-11-06 17:10:31 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2008-11-08 13:23:45 +0100 |
commit | 16e749370862837666ac40252c6f2cdb41037072 (patch) | |
tree | c12ad4e836f7fd4ae5840f78cba7a13874461c4c /iscsi.py | |
parent | 5e410cd3966b12b71d96f95c98f8425990d7bd9d (diff) | |
download | anaconda-16e749370862837666ac40252c6f2cdb41037072.tar.gz anaconda-16e749370862837666ac40252c6f2cdb41037072.tar.xz anaconda-16e749370862837666ac40252c6f2cdb41037072.zip |
Remove obsolete normally never reached code from _stopIscsiDaemon (#470229)
Januari 2008 _stopIscsiDaemon moved to using "iscsiadm -k 0" instead of using
"killall iscsid", but the old code (which also logs out of all targets which
the new code does not do) was kept as fallback, since "iscsiadm -k 0"
practically always works, and since the old fallback code behaves differently
(also logs out of all targets), remove the old code.
This patch also fixes the new code not setting iscsidStarted to False when
iscsid was successfully stopped.
Diffstat (limited to 'iscsi.py')
-rw-r--r-- | iscsi.py | 14 |
1 files changed, 0 insertions, 14 deletions
@@ -312,20 +312,6 @@ class iscsi(object): result = iutil.execWithCapture(ISCSIADM, ["-k", "0"]) result.strip() if result == "": - return - - psout = iutil.execWithCapture("/usr/bin/pidof", ["iscsid"]) - if psout.strip() != "": - log.info("iSCSI shutdown") - for t in self.targets: - t.logout() - - for pidstr in psout.split(): - pid = string.atoi(pidstr) - log.info("killing %s %d" % (ISCSID, pid)) - - os.kill(pid, signal.SIGKILL) - self.iscsidStarted = False def shutdown(self): |