notifier: Limit Counter Underflow
authorGrant Erickson <marathon96@gmail.com>
Tue, 31 May 2011 20:01:24 +0000 (22:01 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 31 May 2011 20:01:24 +0000 (22:01 +0200)
commit6fd94b729495d6b9cdb66ae33adafd59f8b38957
treeebfeccf6dcc51acf02c1327d70030b584d5d9f66
parent1121ed73e9a582d8b92574b00202070a65fb150b
notifier: Limit Counter Underflow

When network and service events occur from the bottom up
(e.g. supplicant, link state, etc.) that also incur IP configuration
changes, it is possible for one or more of the notifier counters to
underflow, leaving connman in a state from which it can never recover
without a process restart.

By limiting underflow of the three notifier counters, these non-
recoverable states are prevented.
src/notifier.c