Add lockfile to the socket
authorJørgen Lind <jorgen.lind@nokia.com>
Wed, 13 Apr 2011 07:38:29 +0000 (09:38 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 13 Apr 2011 14:42:27 +0000 (10:42 -0400)
commitf04e05ad76cd6af890b7b741a9e0f5181bd0ac10
treec269f811259d6c05475ac06077b892d08201afd1
parent4378a80b083f6ad3c5a3eaadd6f55eb14740dbbf
Add lockfile to the socket

This uses flock to detect if there is a process that is active. If not
then it unlinks the socket file if it exists, so that bind won't fail
wayland/wayland-server.c