equal
deleted
inserted
replaced
586 |
586 |
587 if initfn: |
587 if initfn: |
588 initfn() |
588 initfn() |
589 |
589 |
590 if opts['pid_file']: |
590 if opts['pid_file']: |
591 fp = open(opts['pid_file'], 'w') |
591 fp = open(opts['pid_file'], 'a') |
592 fp.write(str(os.getpid()) + '\n') |
592 fp.write(str(os.getpid()) + '\n') |
593 fp.close() |
593 fp.close() |
594 |
594 |
595 if opts['daemon_pipefds']: |
595 if opts['daemon_pipefds']: |
596 rfd, wfd = [int(x) for x in opts['daemon_pipefds'].split(',')] |
596 rfd, wfd = [int(x) for x in opts['daemon_pipefds'].split(',')] |