diff options
author | Claudio Bley <cbley@av-test.de> | 2014-01-17 13:45:35 +0100 |
---|---|---|
committer | Claudio Bley <cbley@av-test.de> | 2014-01-17 13:45:35 +0100 |
commit | 6ebd1a403bd572d5ed83bc836ad00f5bbbd41f49 (patch) | |
tree | 8d8474943a48e11ab95ebebd724f623cdde40949 | |
parent | 7475c53822c2e22d0994ea059bfd482044019a5b (diff) | |
download | logster-6ebd1a403bd572d5ed83bc836ad00f5bbbd41f49.zip logster-6ebd1a403bd572d5ed83bc836ad00f5bbbd41f49.tar.gz logster-6ebd1a403bd572d5ed83bc836ad00f5bbbd41f49.tar.bz2 |
Check whether return value of popen.close() is not None
This fixes #63.
-rwxr-xr-x | bin/logster | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/logster b/bin/logster index 5b459c8..338c1f8 100755 --- a/bin/logster +++ b/bin/logster @@ -385,7 +385,7 @@ def main(): logger.info('Writing new state file and exiting. (Was either first run, or state file went missing.)') input = os.popen(shell_tail) retval = input.close() - if (retval != 256): + if not retval is None: logger.warning('%s returned bad exit code %s' % (shell_tail, retval)) end_locking(lockfile, logtail_lock_file) sys.exit(0) |