Skip to content

Commit

Permalink
ovs-lib: Move DAEMON_CWD initialization to top of file.
Browse files Browse the repository at this point in the history
All the other variables are initialized at the top and I don't see a reason
that this variable is special.

Signed-off-by: Ben Pfaff <[email protected]>
Acked-by: Ethan Jackson <[email protected]>
  • Loading branch information
blp committed Sep 21, 2012
1 parent 5dfad3f commit 5824c93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utilities/ovs-lib.in
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ fi

VERSION='@VERSION@'

DAEMON_CWD=/

LC_ALL=C; export LC_ALL

## ------------- ##
Expand Down Expand Up @@ -159,7 +161,6 @@ start_daemon () {
fi
}

DAEMON_CWD=/
stop_daemon () {
if test -e "$rundir/$1.pid"; then
if pid=`cat "$rundir/$1.pid"`; then
Expand Down

0 comments on commit 5824c93

Please sign in to comment.