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