Blame SOURCES/cobbler-daemon.patch
|
|
1070a0 |
--- scripts/cobblerd.orig 2013-06-18 14:12:00.328726666 +0200
|
|
|
1070a0 |
+++ scripts/cobblerd 2013-06-18 14:12:19.784627599 +0200
|
|
|
1070a0 |
@@ -50,10 +50,10 @@
|
|
|
1070a0 |
print >>sys.stderr, "fork #2 failed: %d (%s)" % (e.errno, e.strerror)
|
|
|
1070a0 |
sys.exit(1)
|
|
|
1070a0 |
|
|
|
1070a0 |
- #dev_null = file('/dev/null','rw')
|
|
|
1070a0 |
- #os.dup2(dev_null.fileno(), sys.stdin.fileno())
|
|
|
1070a0 |
- #os.dup2(dev_null.fileno(), sys.stdout.fileno())
|
|
|
1070a0 |
- #os.dup2(dev_null.fileno(), sys.stderr.fileno())
|
|
|
1070a0 |
+ dev_null = file('/dev/null','rw')
|
|
|
1070a0 |
+ os.dup2(dev_null.fileno(), sys.stdin.fileno())
|
|
|
1070a0 |
+ os.dup2(dev_null.fileno(), sys.stdout.fileno())
|
|
|
1070a0 |
+ os.dup2(dev_null.fileno(), sys.stderr.fileno())
|
|
|
1070a0 |
|
|
|
1070a0 |
def main():
|
|
|
1070a0 |
op = optparse.OptionParser()
|