equal
deleted
inserted
replaced
26 if pid != 0: |
26 if pid != 0: |
27 # child process is all done |
27 # child process is all done |
28 os._exit(0) |
28 os._exit(0) |
29 |
29 |
30 # and finally let's execute the executable for the daemon! |
30 # and finally let's execute the executable for the daemon! |
31 try: |
31 try: |
32 os.execv(path_to_executable, [path_to_executable]) |
32 #os.execv(path_to_executable, [path_to_executable]) |
|
33 os.execv(path_to_executable, args) |
33 except Exception, e: |
34 except Exception, e: |
34 # oops, we're cut off from the world, let's just give up |
35 # oops, we're cut off from the world, let's just give up |
35 os._exit(255) |
36 os._exit(255) |