mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-07 20:08:24 +02:00
core: log warning when sending SIGKILL in nm_utils_kill_child_async()
Processes really should wrap up in a timely manner. If they don't, then something bad happened somewhere and we should log a warning about that.
This commit is contained in:
parent
ae0cc9618c
commit
239b3ca2ab
2 changed files with 8 additions and 8 deletions
|
|
@ -411,7 +411,7 @@ _kc_cb_timeout_grace_period(void *user_data)
|
||||||
errsv);
|
errsv);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
nm_log_dbg(data->log_domain,
|
nm_log_warn(data->log_domain,
|
||||||
"%s: process not terminated after %ld usec. Sending SIGKILL signal",
|
"%s: process not terminated after %ld usec. Sending SIGKILL signal",
|
||||||
data->log_name,
|
data->log_name,
|
||||||
(long) (nm_utils_get_monotonic_timestamp_usec() - data->async.wait_start_us));
|
(long) (nm_utils_get_monotonic_timestamp_usec() - data->async.wait_start_us));
|
||||||
|
|
|
||||||
|
|
@ -369,7 +369,7 @@ do_test_nm_utils_kill_child(void)
|
||||||
|
|
||||||
NMTST_EXPECT_NM_DEBUG("kill child process 'test-a-1-3' (*): wait for process to terminate "
|
NMTST_EXPECT_NM_DEBUG("kill child process 'test-a-1-3' (*): wait for process to terminate "
|
||||||
"after sending no signal (0) (send SIGKILL in 1 milliseconds)...");
|
"after sending no signal (0) (send SIGKILL in 1 milliseconds)...");
|
||||||
NMTST_EXPECT_NM_DEBUG("kill child process 'test-a-1-3' (*): process not terminated after * "
|
NMTST_EXPECT_NM_WARN("kill child process 'test-a-1-3' (*): process not terminated after * "
|
||||||
"usec. Sending SIGKILL signal");
|
"usec. Sending SIGKILL signal");
|
||||||
NMTST_EXPECT_NM_DEBUG(
|
NMTST_EXPECT_NM_DEBUG(
|
||||||
"kill child process 'test-a-1-3' (*): terminated by signal 9 (* usec elapsed)");
|
"kill child process 'test-a-1-3' (*): terminated by signal 9 (* usec elapsed)");
|
||||||
|
|
@ -405,7 +405,7 @@ do_test_nm_utils_kill_child(void)
|
||||||
|
|
||||||
NMTST_EXPECT_NM_DEBUG("kill child process 'test-a-4' (*): wait for process to terminate after "
|
NMTST_EXPECT_NM_DEBUG("kill child process 'test-a-4' (*): wait for process to terminate after "
|
||||||
"sending SIGTERM (15) (send SIGKILL in 1 milliseconds)...");
|
"sending SIGTERM (15) (send SIGKILL in 1 milliseconds)...");
|
||||||
NMTST_EXPECT_NM_DEBUG("kill child process 'test-a-4' (*): process not terminated after * usec. "
|
NMTST_EXPECT_NM_WARN("kill child process 'test-a-4' (*): process not terminated after * usec. "
|
||||||
"Sending SIGKILL signal");
|
"Sending SIGKILL signal");
|
||||||
NMTST_EXPECT_NM_DEBUG(
|
NMTST_EXPECT_NM_DEBUG(
|
||||||
"kill child process 'test-a-4' (*): terminated by signal 9 (* usec elapsed)");
|
"kill child process 'test-a-4' (*): terminated by signal 9 (* usec elapsed)");
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue