Skip to content

Commit 061c7fb

Browse files
committed
Merge pull request #10 from noxiouz/fix_pdeathsig_bug_under_mac
fix: pdeathsig option is not defined under Mac, so it was AttributeError
2 parents 1d249a9 + f0612a9 commit 061c7fb

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

tests/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
nose>=1.3.3
2-
coverage==3.7.1
2+
coverage==4.0.3
33
python-coveralls

zk-flock

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,11 +313,13 @@ if __name__ == "__main__":
313313
if want_to_sleep == "ON":
314314
time.sleep(get_la())
315315

316+
pdeathsig_num = getattr(options, "pdeathsig", 0)
317+
316318
if options.isdaemonize:
317319
daemon = Daemon()
318320
daemon.run = main
319321
daemon.start(cmd_arg, cfg, options.waittime,
320-
options.exitcode, options.sequence, options.pdeathsig)
322+
options.exitcode, options.sequence, pdeathsig_num)
321323
else:
322324
main(cmd_arg, cfg, options.waittime,
323-
options.exitcode, options.sequence, options.pdeathsig)
325+
options.exitcode, options.sequence, pdeathsig_num)

0 commit comments

Comments
 (0)