core/manager: move some comments to a better place
This commit is contained in:
parent
e63ebf71ed
commit
ba0c7754d8
|
@ -2334,8 +2334,7 @@ static int manager_dispatch_signal_fd(sd_event_source *source, int fd, uint32_t
|
||||||
|
|
||||||
case SIGTERM:
|
case SIGTERM:
|
||||||
if (MANAGER_IS_SYSTEM(m)) {
|
if (MANAGER_IS_SYSTEM(m)) {
|
||||||
/* This is for compatibility with the
|
/* This is for compatibility with the original sysvinit */
|
||||||
* original sysvinit */
|
|
||||||
r = verify_run_space_and_log("Refusing to reexecute");
|
r = verify_run_space_and_log("Refusing to reexecute");
|
||||||
if (r >= 0)
|
if (r >= 0)
|
||||||
m->exit_code = MANAGER_REEXECUTE;
|
m->exit_code = MANAGER_REEXECUTE;
|
||||||
|
@ -2352,21 +2351,20 @@ static int manager_dispatch_signal_fd(sd_event_source *source, int fd, uint32_t
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SIGWINCH:
|
case SIGWINCH:
|
||||||
|
/* This is a nop on non-init */
|
||||||
if (MANAGER_IS_SYSTEM(m))
|
if (MANAGER_IS_SYSTEM(m))
|
||||||
manager_start_target(m, SPECIAL_KBREQUEST_TARGET, JOB_REPLACE);
|
manager_start_target(m, SPECIAL_KBREQUEST_TARGET, JOB_REPLACE);
|
||||||
|
|
||||||
/* This is a nop on non-init */
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SIGPWR:
|
case SIGPWR:
|
||||||
|
/* This is a nop on non-init */
|
||||||
if (MANAGER_IS_SYSTEM(m))
|
if (MANAGER_IS_SYSTEM(m))
|
||||||
manager_start_target(m, SPECIAL_SIGPWR_TARGET, JOB_REPLACE);
|
manager_start_target(m, SPECIAL_SIGPWR_TARGET, JOB_REPLACE);
|
||||||
|
|
||||||
/* This is a nop on non-init */
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SIGUSR1:
|
case SIGUSR1:
|
||||||
|
|
||||||
if (manager_dbus_is_running(m, false)) {
|
if (manager_dbus_is_running(m, false)) {
|
||||||
log_info("Trying to reconnect to bus...");
|
log_info("Trying to reconnect to bus...");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue