Revision b50f022f

b/daemons/ganeti-noded
592 592
      os.close(fd)
593 593
    except OSError: # ERROR, fd wasn't open to begin with (ignored)
594 594
      pass
595
  os.open(REDIRECT_TO, os.O_RDWR|os.O_CREAT|os.O_APPEND) # standard input (0)
595
  os.open(REDIRECT_TO, os.O_RDWR|os.O_CREAT|os.O_APPEND, 0600)
596 596
  # Duplicate standard input to standard output and standard error.
597 597
  os.dup2(0, 1)     # standard output (1)
598 598
  os.dup2(0, 2)     # standard error (2)

Also available in: Unified diff