From nobody@FreeBSD.org Tue Feb 6 06:46:34 2001 Return-Path: Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 2D3E137B503 for ; Tue, 6 Feb 2001 06:46:34 -0800 (PST) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f16EkY787796; Tue, 6 Feb 2001 06:46:34 -0800 (PST) (envelope-from nobody) Message-Id: <200102061446.f16EkY787796@freefall.freebsd.org> Date: Tue, 6 Feb 2001 06:46:34 -0800 (PST) From: operador@nietzsche.webcaribe.net To: freebsd-gnats-submit@FreeBSD.org Subject: Server logs:indfcntl(8, F_SETFL, 4): Inappropriate ioctl for device on bind-9.1.0 X-Send-Pr-Version: www-1.0 >Number: 24900 >Category: kern >Synopsis: Server logs:indfcntl(8, F_SETFL, 4): Inappropriate ioctl for device on bind-9.1.0 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Feb 06 06:50:01 PST 2001 >Closed-Date: Mon Aug 12 13:22:32 PDT 2002 >Last-Modified: Mon Aug 12 13:22:32 PDT 2002 >Originator: operator >Release: 3.5-STABLE >Organization: webcaribe >Environment: FreeBSD nietzsche 3.5-STABLE FreeBSD 3.5-STABLE #0: Sun Dec 31 16:55:57 COT 2000 root@nietzsche:/usr/src/sys/compile/NIETZSCHE i386 >Description: On FreeBSD systems,with bind-9.1.0 the server logs error messages like "fcntl(8, F_SETFL, 4): Inappropriate ioctl for device". This is due to a bug in the FreeBSD /dev/random device. >How-To-Repeat: Include the bug fix in 3-STABLE series. >Fix: >Release-Note: >Audit-Trail: From: Bruce Evans To: operador@nietzsche.webcaribe.net Cc: freebsd-gnats-submit@FreeBSD.ORG, markm@FreeBSD.ORG Subject: Re: kern/24900: Server logs:indfcntl(8, F_SETFL, 4): Inappropriate ioctl for device on bind-9.1.0 Date: Wed, 7 Feb 2001 03:18:56 +1100 (EST) On Tue, 6 Feb 2001 operador@nietzsche.webcaribe.net wrote: > >Description: > On FreeBSD systems,with bind-9.1.0 the server logs error messages > like "fcntl(8, F_SETFL, 4): Inappropriate ioctl for > device". This is due to a bug in the FreeBSD > /dev/random device. This may be due to a bug in bind-9.1.0. O_NONBLOCK isn't implemented in /dev/random in FreeBSD-3.5, so it is correct for attempts to set it to fail. This is a bug in FreeBSD-current. O_NONBLOCK is implemented in /dev/random in FreeBSD-current, but attempts to set it using fcntl() fail because random_ioctl() broken. Devices that support O_NONBLOCK must have an ioctl routine that returns success for FIONBIO. This is just to support broken drivers that store the blocking state in a per-device variable. Non-broken drivers use the blocking state passed to their i/o functions. So does /dev/random, but the bug makes the state set by open() unchangeable. Bruce State-Changed-From-To: open->closed State-Changed-By: iedowse State-Changed-When: Mon Aug 12 13:19:40 PDT 2002 State-Changed-Why: Sorry, RELENG_3 is no longer supported, and nobody has shown an interest in this PR in over a year. http://www.freebsd.org/cgi/query-pr.cgi?pr=24900 >Unformatted: