Skip to content

Commit

Permalink
exchange the order of operations to avoid a race
Browse files Browse the repository at this point in the history
  • Loading branch information
bassosimone committed Sep 26, 2017
1 parent dbf01b1 commit d09c1c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ script:
#
# 2. I need to copy the pidfile because it is deleted by the daemon when
# it exits, as such, using the original pidfile is racy.
- cp oonib.pid oonib-persist.pid
- sleep 30
- cp oonib.pid oonib-persist.pid
- kill -TERM `cat oonib-persist.pid`
- wait `cat oonib-persist.pid`

Expand Down

0 comments on commit d09c1c5

Please sign in to comment.