~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/daemon.py

  • Committer: Martin Albisetti
  • Date: 2008-10-25 19:26:49 UTC
  • mfrom: (232 trunk)
  • mto: This revision was merged to the branch mainline in revision 233.
  • Revision ID: martin.albisetti@canonical.com-20081025192649-7r5g6vyyqh2p748t
Merge from trunk, resolved conflicts

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
        try:
26
26
            pid = os.fork()     # Fork a second child.
27
27
        except OSError, e:
28
 
            raise Exception, "%s [%d]" % (e.strerror, e.errno)
 
28
            raise Exception("%s [%d]" % (e.strerror, e.errno))
29
29
 
30
30
        if pid == 0:  # The second child.
31
31
            os.chdir(WORKDIR)
53
53
            pass
54
54
 
55
55
    f = open(pidfile, 'w')
56
 
    f.write('%d\n' % (os.getpid(),))
57
 
    f.write('%s\n' % (home,))
 
56
    f.write('%d\n' % os.getpid())
 
57
    f.write('%s\n' % home)
58
58
    f.close()
59
59
 
60
60