[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cgmanager-devel
Subject:    [cgmanager-devel] [cgmanager/cgmanager] 9cae5a: get_tasks: don't hang proxy if tasks are exiting
From:       noreply () github ! com (GitHub)
Date:       2014-11-27 0:51:35
Message-ID: 54767597d82d4_e6c3fba4609d2c011354f () hookshot-fe4-cp1-prd ! iad ! github ! net ! mail
[Download RAW message or body]

  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>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic