version 1.1.1.1, 2020/06/03 09:46:44
|
version 1.1.1.2, 2021/03/17 00:20:08
|
Line 94 static void run()
|
Line 94 static void run()
|
switch (sig) |
switch (sig) |
{ |
{ |
case SIGINT: |
case SIGINT: |
{ |
|
DBG1(DBG_DMN, "signal of type SIGINT received. Shutting down"); |
|
charon->bus->alert(charon->bus, ALERT_SHUTDOWN_SIGNAL, sig); |
|
return; |
|
} |
|
case SIGTERM: |
case SIGTERM: |
{ |
{ |
DBG1(DBG_DMN, "signal of type SIGTERM received. Shutting down"); | DBG1(DBG_DMN, "%s received, shutting down", |
| sig == SIGINT ? "SIGINT" : "SIGTERM"); |
charon->bus->alert(charon->bus, ALERT_SHUTDOWN_SIGNAL, sig); |
charon->bus->alert(charon->bus, ALERT_SHUTDOWN_SIGNAL, sig); |
return; |
return; |
} |
} |