Prefer regular logging to raw_logging

PiperOrigin-RevId: 558089528
Change-Id: Id3fb3ec16d25c5df859c305e1b0db00b54212958
This commit is contained in:
Wiktor Garbacz 2023-08-18 02:42:41 -07:00 committed by Copybara-Service
parent b258535161
commit ff23e878d3
2 changed files with 6 additions and 10 deletions

View File

@ -42,7 +42,7 @@ pid_t ForkingClient::WaitAndFork() {
}
pid_t pid = fork_server_worker_->ServeRequest();
if (pid == -1 && fork_server_worker_->IsTerminated()) {
SAPI_RAW_VLOG(1, "ForkServer Comms closed. Exiting");
VLOG(1) << "ForkServer Comms closed. Exiting";
exit(0);
}
return pid;

View File

@ -231,15 +231,11 @@ void UnotifyMonitor::SetExitStatusFromStatusPipe() {
int code, status;
rusage usage;
SAPI_RAW_PCHECK(
read(process_.status_fd.get(), &code, sizeof(code)) == sizeof(code),
"read");
SAPI_RAW_PCHECK(
read(process_.status_fd.get(), &status, sizeof(status)) == sizeof(status),
"read");
SAPI_RAW_PCHECK(
read(process_.status_fd.get(), &usage, sizeof(usage)) == sizeof(usage),
"read");
PCHECK(read(process_.status_fd.get(), &code, sizeof(code)) == sizeof(code));
PCHECK(read(process_.status_fd.get(), &status, sizeof(status)) ==
sizeof(status));
PCHECK(read(process_.status_fd.get(), &usage, sizeof(usage)) ==
sizeof(usage));
result_.SetRUsageSandboxee(usage);
if (code == CLD_EXITED) {