Check for state STARTING before calling started() when process status
authorDavin McCall <davmac@davmac.org>
Wed, 9 Nov 2016 15:17:54 +0000 (15:17 +0000)
committerDavin McCall <davmac@davmac.org>
Wed, 9 Nov 2016 15:17:54 +0000 (15:17 +0000)
commitbb6855c2457607fa3f4191324a44176e9892df09
tree4f3d167885487090ea5acac67870ff2d25ad5529
parentdfa4e453b71a5f0c20ae5735aba5980d43c18bf9
Check for state STARTING before calling started() when process status
fd closes.

A smooth-recovery process should not reported started when it recovers
(state is already STARTED). Furthermore, a service could be stopped
during smooth recovery, in which case the state will be STOPPING and
the service should certainly not transition to STARTED.
src/service.cc