Date: Sat, 12 Jun 1999 10:39:09 +0200 From: Marcel Moolenaar <marcel@scc.nl> To: emulation@FreeBSD.ORG Subject: Re: Bug in linux fcntl syscall? Message-ID: <37621CAD.7E822846@scc.nl> References: <Pine.BSF.4.10.9906111638550.23239-100000@shell2.ba.best.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37621CAD.7E822846>