This repository has been archived by the owner on Apr 15, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
get_tasks: don't hang proxy if tasks are exiting
In both GetTasks and GetTasksRecursive in the proxy, switch to a 1-second select plus recvmsg(MSG_DONTWAIT) when waiting for pids from the cgmanager. if the cgmanager sees a credential send failed, then it will resend the first pid which succeeded, so that the proxy just gets a dup. If no previous pid has succeeded, or if that pid has now also exited, then we'll simply exit, and the proxy will now gracefully fail. Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
- Loading branch information
Showing
3 changed files
with
55 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters