From: Oren Laadan Subject: Checkpoint/restart of ptys, pgids, and controlling tty Date: Fri, 4 Sep 2009 10:20:45 -0400 Message-ID: <1252074054-22241-1-git-send-email-orenl@librato.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org List-Id: containers.vger.kernel.org This post packs together the patches (6 for kernel, 3 for user) to provide checkpoint/restart support for ptys, pgids and controlling terminal. They apply on top of current ckpt-dev-v17 (kernel, user). I'm not an expert on PTYs, TTYs, line disciplines and the like, comments are mostly welcome: * What (additional) values we need to sanitize on restart ? * What (additional) locking should be in place ? (especially checkpoint) * Need to save/restore echo buffer (and position) ? * /dev/ptmx and /dev/pts/... paths are currently hardcoded * Other security concerns ? ... Oren.