From owner-freebsd-hackers@FreeBSD.ORG Wed Feb 4 23:14:18 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D4A47F42 for ; Wed, 4 Feb 2015 23:14:18 +0000 (UTC) Received: from resqmta-ch2-09v.sys.comcast.net (resqmta-ch2-09v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:41]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client CN "Bizanga Labs SMTP Client Certificate", Issuer "Bizanga Labs CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 9A3BD7C3 for ; Wed, 4 Feb 2015 23:14:18 +0000 (UTC) Received: from resomta-ch2-12v.sys.comcast.net ([69.252.207.108]) by resqmta-ch2-09v.sys.comcast.net with comcast id oPDB1p0072LrikM01PEGgv; Wed, 04 Feb 2015 23:14:16 +0000 Received: from resmail-ch2-217v.sys.comcast.net ([162.150.48.251]) by resomta-ch2-12v.sys.comcast.net with comcast id oPEG1p00K5RAVJS01PEGRs; Wed, 04 Feb 2015 23:14:16 +0000 Date: Wed, 4 Feb 2015 23:14:15 +0000 (UTC) From: rondzierwa@comcast.net To: freebsd-hackers@freebsd.org Message-ID: <1897206085.18211845.1423091655890.JavaMail.zimbra@comcast.net> In-Reply-To: <180767922.18206802.1423091179515.JavaMail.zimbra@comcast.net> Subject: SOL_SOCKET MIME-Version: 1.0 X-Originating-IP: [::ffff:50.241.136.197] X-Mailer: Zimbra 8.0.7_GA_6031 (ZimbraWebClient - FF28 (Win)/8.0.7_GA_6031) Thread-Topic: SOL_SOCKET Thread-Index: mmu4OsK+RG6C7w8AqwykBOfOKZlVaQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1423091656; bh=t1najzlzNBEsM9KTecTsqrLCQnJeQXxSJdeCcLWZ2R0=; h=Received:Received:Date:From:To:Message-ID:Subject:MIME-Version: Content-Type; b=Yyo7f1ZpT/pyMPa7qlRSoN067abQ4nCP3FQgL0+EoNOEHZp9im3RbCjsZzOcAuUog ykRx9Vj3UI7811EXEWiN8XWcfF2XTSye+DUW8kjJWcDvLifJa978lV7CmbMe7dd294 6/QOv5p5memFGA5HW3n1G+Az66E6qc+4WNByJK9GK9ElQoq/FQ7ZiBpKPJOu+uzTxI BMU/M8P/dGGNjvqpoX8TtlsyY+O8ekJ6/aQHTeYeWHcHwkLPyXRrPhvyyFp46M5Zc2 1eV/7PlBWwn9zwbqgfU7j2uy/ME8O4sk5ZMEHBSZeVz/XrWvawrMp5Dr5AxmRA5jvj ZK0HQU9YFXSuA== Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Feb 2015 23:14:19 -0000 Is SOL_SOCKET broken in 9.3-release? I have an app i'm porting from linux that consists of two programs, one is run as a command from ssh ( ssh user@host -T ./receiver ). The receiver program then passes its stdin and stdout fd's to a server program using through a unix socket in /tmp. When recompile to run on FreeBSD, the fd for stdin that i send over does not get translated - i.e. the fd i get from recvmsg in the server process is 0, which is the server's own stdin, not the stdin of the program that sent the fd. The stdout fd gets passed successfully. its only the stdin fd that isn't getting translated. I have tried doing a dup() on the fds before sending them, and the stdin fd still turns up as 0 at the other end. Is there something I have to do in order to send my stdin fd to another process? thanks, ron.