Skip to content

Commit

Permalink
Merge pull request #37 from stephen-soltesz/master
Browse files Browse the repository at this point in the history
Add comment explaining how we prevent live lock.
  • Loading branch information
stephen-soltesz committed Mar 8, 2017
2 parents dd2c15b + 5b38ad6 commit c611486
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions doside
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@ tdump8000.py $mynode &
LOGF=$HOME/VAR/logs/paris-traceroute.log
rm -f $LOGF


# The wait for /dev/shm/iupui_npad must run in the background.
#
# If the wait below runs in the foreground, then we create a live lock because
# 1) `vserver start` waits for the iupui_npad init scripts to return before
# running the vserver `post-start` script that mounts /dev/shm/iupui_npad, and
# 2) the npad initscript waits (here) for /dev/shm/iupui_npad to be mounted
# before returning.
#
# Running this block here in the background prevents the live lock.
(
# Wait until /dev/shm/iupui_npad is mounted by the
# vserver start sequence.
Expand Down

0 comments on commit c611486

Please sign in to comment.