Skip to content

Commit 380e04e

Browse files
happyCoder92copybara-github
authored andcommitted
monitor_unotify: Add more logs to status pipe failures
PiperOrigin-RevId: 751297429 Change-Id: I21c2a3ed309d74210282fd277c996596d8ceac19
1 parent 87786c5 commit 380e04e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sandboxed_api/sandbox2/monitor_unotify.cc

+2
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ void UnotifyMonitor::Run() {
298298
break;
299299
}
300300
if (pfds[0].revents & POLLHUP) {
301+
LOG(ERROR) << "Status pipe hangup";
301302
SetExitStatusCode(Result::INTERNAL_ERROR, Result::FAILED_MONITOR);
302303
break;
303304
}
@@ -341,6 +342,7 @@ void UnotifyMonitor::SetExitStatusFromStatusPipe() {
341342
SetExitStatusCode(Result::SIGNALED, status);
342343
}
343344
} else {
345+
LOG(ERROR) << "Unexpected exit code: " << code;
344346
SetExitStatusCode(Result::INTERNAL_ERROR, Result::FAILED_MONITOR);
345347
}
346348
}

0 commit comments

Comments
 (0)