From owner-freebsd-emulation Sat Jun 12 1:53:45 1999 Delivered-To: freebsd-emulation@freebsd.org Received: from gaia.euronet.nl (gaia.euronet.nl [194.134.0.10]) by hub.freebsd.org (Postfix) with ESMTP id 4ACE915292 for ; Sat, 12 Jun 1999 01:53:28 -0700 (PDT) (envelope-from freebsd-emulation@scc.nl) Received: from scones.sup.scc.nl (i222.ztm.euronet.nl [194.134.67.23]) by gaia.euronet.nl (8.8.8/8.8.8) with ESMTP id KAA00537 from for ; Sat, 12 Jun 1999 10:53:26 +0200 (MET DST) Received: (from daemon@localhost) by scones.sup.scc.nl (8.9.3/8.9.3) id KAA07466 for emulation@FreeBSD.ORG; Sat, 12 Jun 1999 10:39:12 +0200 (CEST) (envelope-from freebsd-emulation@scc.nl) Received: from GATEWAY by scones.sup.scc.nl with netnews for emulation@FreeBSD.ORG (emulation@FreeBSD.ORG) To: emulation@FreeBSD.ORG Date: Sat, 12 Jun 1999 10:39:09 +0200 From: Marcel Moolenaar Message-ID: <37621CAD.7E822846@scc.nl> Organization: SCC vof Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit References: Subject: Re: Bug in linux fcntl syscall? Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Allan Saddi wrote: > Today, after hours of truss'ing and strace'ing (on a RedHat 6 system), I > discovered the problem. In linux_file.c, the function linux_fcntl: > Notice that fcntl_args.arg is always 0. This keeps the F_SETFD call from > ever setting the close-on-exec flag, which is precisely the problem. I > patched the LINUX_F_SETFD case to set fcntl_args.arg to args->arg, and > TclPro's prodebug now works fine. > I would've filed a PR, but looking at the code, I see other cases that > set/assign fcntl_args.arg explicitly. So I'm wondering if this was a > design decision rather than a bug? (One of those feature vs. bugs things, > I guess. ;) I wouldn't call it a bug. I wouldn't call it a feature either :-) Anyway, you should file the PR. -- Marcel Moolenaar mailto:marcel@scc.nl SCC Internetworking & Databases http://www.scc.nl/ Amsterdam, The Netherlands tel: +31 20 4200655 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message