use SS_RC_FIRST and SS_RC_LAST
This commit is contained in:
parent
3646c8a159
commit
5d8306de68
|
@ -35,6 +35,9 @@
|
|||
#define SS_RC_DAEMON_INTEGRITY 65
|
||||
#define SS_RC_INITIALIZATION_FAILED 66
|
||||
|
||||
#define SS_RC_FIRST SS_RC_LIBSTRONGSWAN_INTEGRITY
|
||||
#define SS_RC_LAST SS_RC_INITIALIZATION_FAILED
|
||||
|
||||
/**
|
||||
* Number of bits in a byte
|
||||
*/
|
||||
|
|
|
@ -103,8 +103,7 @@ static void fsig(int signal)
|
|||
else if (WIFEXITED(status))
|
||||
{
|
||||
exit_status = WEXITSTATUS(status);
|
||||
if (exit_status >= SS_RC_LIBSTRONGSWAN_INTEGRITY &&
|
||||
exit_status <= SS_RC_INITIALIZATION_FAILED)
|
||||
if (exit_status >= SS_RC_FIRST && exit_status <= SS_RC_LAST)
|
||||
{
|
||||
_action_ = FLAG_ACTION_QUIT;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue