Skip to content

Commit 2143017

Browse files
committed
xenserver: Don't delete pidfile in stop_daemon.
Deleting the pidfile introduces a minor race: if some other process is starting a daemon at the same time that the init script is stopping the same daemon, then this could delete the new daemon's pidfile. This is really a theoretical risk, because no one should be starting and stopping a single daemon at the same time.
1 parent 18547b9 commit 2143017

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

xenserver/etc_init.d_openvswitch

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,6 @@ function stop_daemon {
262262
break
263263
fi
264264
done
265-
rm -f "$pidfile"
266265
fi
267266
}
268267

0 commit comments

Comments
 (0)