From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27137 invoked by alias); 3 Dec 2012 12:11:10 -0000 Received: (qmail 27127 invoked by uid 22791); 3 Dec 2012 12:11:08 -0000 X-SWARE-Spam-Status: No, hits=-5.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-lb0-f169.google.com (HELO mail-lb0-f169.google.com) (209.85.217.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 03 Dec 2012 12:10:01 +0000 Received: by mail-lb0-f169.google.com with SMTP id gk1so2409632lbb.0 for ; Mon, 03 Dec 2012 04:09:59 -0800 (PST) Received: by 10.152.47.75 with SMTP id b11mr9055581lan.14.1354536204033; Mon, 03 Dec 2012 04:03:24 -0800 (PST) MIME-Version: 1.0 Received: by 10.114.63.42 with HTTP; Mon, 3 Dec 2012 04:03:03 -0800 (PST) From: shawn wilson Date: Mon, 03 Dec 2012 12:11:00 -0000 Message-ID: Subject: clone process output To: gdb@sourceware.org Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-12/txt/msg00007.txt.bz2 i'm trying to copy output of an already running process. i can redirect it with a p close(1); p create( ... ); but even if i omit close, it seems the output is redirected (instead of copied) anyway. i'm guessing this is because there is only one stdout. so, can i proxy the output somehow. i'm trying to do this at a sub-tty level so that if i do: ssh host command (ie, no tty) i can still log the output.