From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Matt Wette Newsgroups: gmane.lisp.guile.bugs Subject: bug#25790: guile-2.1.7 SOCK_CLOEXEC etc Date: Mon, 20 Feb 2017 14:06:14 -0800 Message-ID: References: <750c3b96-c1fb-40cb-b208-0dc2a205d283@me.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1487628436 24135 195.159.176.226 (20 Feb 2017 22:07:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 20 Feb 2017 22:07:16 +0000 (UTC) To: 25790@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Mon Feb 20 23:07:12 2017 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfw6v-0005jl-Ve for guile-bugs@m.gmane.org; Mon, 20 Feb 2017 23:07:10 +0100 Original-Received: from localhost ([::1]:41275 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cfw71-0004sb-PR for guile-bugs@m.gmane.org; Mon, 20 Feb 2017 17:07:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56123) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cfw6s-0004qr-0A for bug-guile@gnu.org; Mon, 20 Feb 2017 17:07:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cfw6o-0000LT-TB for bug-guile@gnu.org; Mon, 20 Feb 2017 17:07:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49673) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cfw6o-0000LM-PF for bug-guile@gnu.org; Mon, 20 Feb 2017 17:07:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cfw6o-0002V8-Ig for bug-guile@gnu.org; Mon, 20 Feb 2017 17:07:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <750c3b96-c1fb-40cb-b208-0dc2a205d283@me.com> Resent-From: Matt Wette Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Mon, 20 Feb 2017 22:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25790 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 25790-submit@debbugs.gnu.org id=B25790.14876283869571 (code B ref 25790); Mon, 20 Feb 2017 22:07:02 +0000 Original-Received: (at 25790) by debbugs.gnu.org; 20 Feb 2017 22:06:26 +0000 Original-Received: from localhost ([127.0.0.1]:47872 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfw6D-0002UI-RQ for submit@debbugs.gnu.org; Mon, 20 Feb 2017 17:06:26 -0500 Original-Received: from mail-pg0-f48.google.com ([74.125.83.48]:36394) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfw6B-0002U5-QV for 25790@debbugs.gnu.org; Mon, 20 Feb 2017 17:06:24 -0500 Original-Received: by mail-pg0-f48.google.com with SMTP id s67so12996024pgb.3 for <25790@debbugs.gnu.org>; Mon, 20 Feb 2017 14:06:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=SpBccgVtnWlaZ/iz5GpuhKiF89q6FtH8r4b+vHkP4zg=; b=eIV1BQv5K33zTf2GaXfAAVYRv0Uk3n1T2gYoTtyT1fYnQ71Os7NF5PUIofyvvPtR/i eVpYUhxX7tZcoTZBhjdN/aeldlphdIKOLKGi+NZM0og8xBBkhciw6NJoLTzpS35uIIUY mBtdtwvooT2WDaemyhL/XgeOdFeVEsFW/kf+vi3DNnfRNCF3bmZP8vv6BDFRYi3qh76J H3cMTHfTL3qRSf3SjgFSFgurb1Unjw7u1egaF8NaA1EY9yTCRnXhnkzoqG8c+pyLvAPN XaeAL0ixSF5ZPxKt+rjSLWUQRCbpvp5JTTE2SoufBmF1hcqwcccWVRu3xTkMEBDfXInO oqJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=SpBccgVtnWlaZ/iz5GpuhKiF89q6FtH8r4b+vHkP4zg=; b=m3vwS8buiPzvWqtqayxNyfFCaZDfM3JUb+d2Hhn+8YTryh5fpliUusfW8z1NcyK/ym PvLVi+8dVmiyDNjBCw8mVsePqxsAoi0Cb5n5ArUtkSLdrA/+Cz31t+1sQBUNPdrCB5od jS09Ydy336tu3Y6ipCXJksUO6TOlTz+OeIo5kwG/skbuI38mberaB/DOILZm7swuMyfp YYY4HCq2rMUQqdWgITvBTJBASzz8MI91DKdKZI+qhdEfBlQ90vRqGdd5EesfR3HhZFDz 17hQFyZ0uvOY7Ukf5s+q/FDOh3LP89XMubr60i419dKbqf94YmfT3JdHBlHaI+2IPBxG Fi+w== X-Gm-Message-State: AMke39loXyXLm1JrhAlJ7DZSDOzpPZu74GBsFWNzTefcj/Kc0FxfVdijH4l/a+sbnwJU6Q== X-Received: by 10.84.197.1 with SMTP id m1mr35416758pld.123.1487628377737; Mon, 20 Feb 2017 14:06:17 -0800 (PST) Original-Received: from nautilus.championbroadband.com (216-165-246-244.championbroadband.com. [216.165.246.244]) by smtp.gmail.com with ESMTPSA id 17sm16517561pfi.40.2017.02.20.14.06.16 for <25790@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Feb 2017 14:06:16 -0800 (PST) X-Mailer: Apple Mail (2.3259) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.org gmane.lisp.guile.bugs:8558 Archived-At: I see the same problem on Mac OS. If the following appeared in a header somewhere CLOEXEC would work: #define SOCK_CLOEXEC FD_CLOEXEC It would work. Note the implementation in lib/accept4.c: #ifndef SOCK_CLOEXEC #define SOCK_CLOEXEC 0 #endif Then later the flags to accept4 have SOCK_CLOEXEC set, then the call to = fcntl includes FD_CLOEXEC.=20 So any system that defines FD_CLOEXEC should be able to use = SOCK_CLOEXEC. But it needs to be defined. I assume if a system supports O_NONBLOCK then something could be done = with SOCK_NONBLOCK also. I was going to submit a patch that is the same, except that I removed = the text =E2=80=9CNo ifdef as accept4 has a gnulib implementation.=E2=80=9D= Matt