[cgmanager-devel] [cgmanager/cgmanager] 9cae5a: get_tasks: don't hang proxy if tasks are exiting

GitHub noreply at github.com
Thu Nov 27 00:51:35 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/cgmanager/cgmanager
  Commit: 9cae5aa5cc0818d00d9a9c238bfdc31279cac5fe
      https://github.com/cgmanager/cgmanager/commit/9cae5aa5cc0818d00d9a9c238bfdc31279cac5fe
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2014-11-26 (Wed, 26 Nov 2014)

  Changed paths:
    M access_checks.c
    M cgmanager-proxy.c
    M frontend.c

  Log Message:
  -----------
  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 at ubuntu.com>




More information about the cgmanager-devel mailing list