Re-create control socket file node if it disappears.
authorDavin McCall <davmac@davmac.org>
Sat, 29 Jun 2019 03:41:38 +0000 (13:41 +1000)
committerDavin McCall <davmac@davmac.org>
Sat, 29 Jun 2019 04:14:48 +0000 (14:14 +1000)
commit1a682f27306d19c29476f262e00de86409609895
treebe301e14120e3e498af4c5b3e7a2abeea2b5f8cd
parent227010b65c0a81edc705dc0f0eb2502eb434a72a
Re-create control socket file node if it disappears.

In case something is mounted over /dev (or wherever the control socket
lives) it will become inaccessible. When a starts-rwfs service starts,
check the socket node still exists and if not, close the socket and
re-open.

Cherry-picked from development branch.
src/dinit.cc