From owner-freebsd-hackers@FreeBSD.ORG Sat Feb 21 18:00:36 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 59A8416A4D0 for ; Sat, 21 Feb 2004 18:00:36 -0800 (PST) Received: from multiplay.co.uk (www1.multiplay.co.uk [212.42.16.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC97F43D2F for ; Sat, 21 Feb 2004 18:00:35 -0800 (PST) (envelope-from killing@multiplay.co.uk) Received: from vader ([212.135.219.179]) by multiplay.co.uk (multiplay.co.uk [212.42.16.7]) (MDaemon.PRO.v6.8.5.R) with ESMTP id 29-md50000000180.tmp for ; Sun, 22 Feb 2004 01:50:33 +0000 Message-ID: <014701c3f8e7$8bd1eb70$b3db87d4@multiplay.co.uk> From: "Steven Hartland" To: , Date: Sun, 22 Feb 2004 01:59:46 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Spam-Processed: multiplay.co.uk, Sun, 22 Feb 2004 01:50:33 +0000 (not processed: message from valid local sender) X-MDRemoteIP: 212.135.219.179 X-Return-Path: killing@multiplay.co.uk X-MDaemon-Deliver-To: freebsd-hackers@freebsd.org Subject: screen -X hardcopy fails on never attached instance X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Feb 2004 02:00:36 -0000 If you start a screen session detached to run a command in then run screen -X hardcopy -h /var/tmp/capture.txt The size of the capture is always 0. I've done some digging with a debug build and this is due to it failing to find the window "Running command on display 0 window 0 (-1)" If however you attach to the command session first and then detach all is fine. It seems like screen -m -d is missing some initialisation somewhere but I cant find where. **Never attached*** Knock - knock! Ha, there was someone knocking on my fifo?? secopen(/tmp/screens/S-root/25144.my screen, 0x4, 0000) Deq event fd 4 type 1 queued 1 New event fd 4 type 1 queued 0 *** RecMsg: type 8 tty /dev/ttyp2 display: /dev/ttyp2 display not found FindUserPtr root found, id 0 FindNiceWindow -1 NULL Running command on display 0 window 0 (-1) WriteFile(3) /usr/ports/misc/screen/work/screen-4.0.1/test2.capture Writefile: usercontext + hit ev fd 0 type 3! serv_select_fn called waiting for events: - fd 6 type 1 pri 0 - fd 6 type 2 pri 0 - fd 4 type 1 pri 0 - fd 0 type 3 pri -10 - cond ev fd 6 type 2 failed readfds: 4 6 writefds: **Previously attached*** Knock - knock! Ha, there was someone knocking on my fifo?? secopen(/tmp/screens/S-root/25144.my screen, 0x4, 0000) Deq event fd 4 type 1 queued 1 New event fd 4 type 1 queued 0 *** RecMsg: type 8 tty /dev/ttyp2 display: /dev/ttyp2 display not found FindUserPtr root found, id 0 FindNiceWindow 0 NULL Running command on display 0 window 80b7000 (0) WriteFile(3) /usr/ports/misc/screen/work/screen-4.0.1/test2.capture Writefile: usercontext + hit ev fd 0 type 3! serv_select_fn called waiting for events: - fd 6 type 1 pri 0 - fd 6 type 2 pri 0 - fd 4 type 1 pri 0 - fd 0 type 3 pri -10 - cond ev fd 6 type 2 failed readfds: 4 6 writefds: Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137 or return the E.mail to postmaster@multiplay.co.uk.