mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
More verbose logging on graceful exit timeout
PiperOrigin-RevId: 554382651 Change-Id: I7205fed9285b2aaff93860782d65d3dc829bb5f9
This commit is contained in:
parent
0a0ac6a66b
commit
dd664400d7
|
@ -456,6 +456,7 @@ cc_library(
|
||||||
"@com_google_absl//absl/container:flat_hash_map",
|
"@com_google_absl//absl/container:flat_hash_map",
|
||||||
"@com_google_absl//absl/container:flat_hash_set",
|
"@com_google_absl//absl/container:flat_hash_set",
|
||||||
"@com_google_absl//absl/flags:flag",
|
"@com_google_absl//absl/flags:flag",
|
||||||
|
"@com_google_absl//absl/log",
|
||||||
"@com_google_absl//absl/status",
|
"@com_google_absl//absl/status",
|
||||||
"@com_google_absl//absl/strings",
|
"@com_google_absl//absl/strings",
|
||||||
"@com_google_absl//absl/synchronization",
|
"@com_google_absl//absl/synchronization",
|
||||||
|
|
|
@ -432,6 +432,7 @@ target_link_libraries(sandbox2_monitor_ptrace
|
||||||
PRIVATE absl::cleanup
|
PRIVATE absl::cleanup
|
||||||
absl::flat_hash_set
|
absl::flat_hash_set
|
||||||
absl::flags
|
absl::flags
|
||||||
|
absl::log
|
||||||
absl::status
|
absl::status
|
||||||
absl::strings
|
absl::strings
|
||||||
absl::time
|
absl::time
|
||||||
|
|
|
@ -35,6 +35,7 @@
|
||||||
#include "absl/container/flat_hash_set.h"
|
#include "absl/container/flat_hash_set.h"
|
||||||
#include "absl/flags/declare.h"
|
#include "absl/flags/declare.h"
|
||||||
#include "absl/flags/flag.h"
|
#include "absl/flags/flag.h"
|
||||||
|
#include "absl/log/log.h"
|
||||||
#include "absl/status/status.h"
|
#include "absl/status/status.h"
|
||||||
#include "absl/strings/str_cat.h"
|
#include "absl/strings/str_cat.h"
|
||||||
#include "absl/time/time.h"
|
#include "absl/time/time.h"
|
||||||
|
@ -419,7 +420,9 @@ void PtraceMonitor::Run() {
|
||||||
for (;;) {
|
for (;;) {
|
||||||
auto left = deadline - absl::Now();
|
auto left = deadline - absl::Now();
|
||||||
if (absl::Now() >= deadline) {
|
if (absl::Now() >= deadline) {
|
||||||
LOG(INFO) << "Waiting for sandboxee exit timed out";
|
LOG(WARNING)
|
||||||
|
<< "Waiting for sandboxee exit timed out. Sandboxee result: "
|
||||||
|
<< result_.ToString();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
pid_t ret = pid_waiter.Wait(&status);
|
pid_t ret = pid_waiter.Wait(&status);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user