From nobody Fri Feb 23 13:00:29 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Th99B2MD9z5CQXf for ; Fri, 23 Feb 2024 13:00:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Th9996MFYz4v06 for ; Fri, 23 Feb 2024 13:00:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708693229; a=rsa-sha256; cv=none; b=cghmddio5VpP/LaBBFkFJF5t0kvBzV+YINxwQTOTnWAAyymMIacYxQk3NMUcIk5baDqs5Q A5H6G28t9C9ztjQbmNTcdrJdqfptRCjtsOaFxpqPu2RnQna1U16l7i4ziuqleTwOh4LQ1F ouZSge/8MAsjFb2mNwv3y/iV2NqHxlve+luNfJ6osZNny7yfcHaMOwmJBUQI4VGEpcuAvO T7ZR57t+pTOPIpVaSRBpwOJJc8lrK7cK5725dwHD3CRMEJC5CekF/IGUyA8RYJu455Aypu CzDRgnJcGMRLMqA+J8XgH0ZB3ypaczvs7S0g1Zzm9c8NRpmxK3hCThSo2iDjOw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708693229; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2Drsy4eWUM3VeRRsPQtwhm4spOeNDKYqLWpVhEUTMTw=; b=gP60agccfsXxFfYFihcw4iBLkgwLhdb6FCpKu3dZ+CCGbDLvbfk/kbSsCaZv5ONMsOyF3t hFVYBttznx8z+MEWHICsuGCVPqsEjKvM1T9yKzQU8b9ok6BCE6rZZewOje3zXk6JauuJy4 JZ+ZHqvxE6AjlghfzkSTFhpN1Ifx3M2koB3Lkfb/61wpg4S5SQReKUDrmjXU0+ttsQN2m4 C2fjJa8v4DKdPEpOh0zas0ClfKfQtKuWYcQUR1iKGMPPVXBbidcjtihAHQED/CUrxVpiMD nMtevEtx7N8gLho9Loy2gddjVLP5BIx2t7eMXRQKiWOGFBZUoOzu82XC5djiwA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Th9995JXlzGvH for ; Fri, 23 Feb 2024 13:00:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 41ND0Two040782 for ; Fri, 23 Feb 2024 13:00:29 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 41ND0Tut040781 for bugs@FreeBSD.org; Fri, 23 Feb 2024 13:00:29 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 240015] kqueue(2) manual example code is a bit wrong. Date: Fri, 23 Feb 2024 13:00:29 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Documentation X-Bugzilla-Component: Manual Pages X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: unitrunker@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240015 --- Comment #1 from unitrunker --- It looks to me as though the sample code was fixed. /* Initialize kevent structure. */ EV_SET(&event, fd, EVFILT_VNODE, EV_ADD | EV_CLEAR, NOTE_WRITE, 0, NULL); /* Attach event to the kqueue. */ ret =3D kevent(kq, &event, 1, NULL, 0, NULL); if (ret =3D=3D -1) err(EXIT_FAILURE, "kevent register"); for (;;) { /* Sleep until something happens. */ Those two lines are now gone. @linimon I think this can be closed. --=20 You are receiving this mail because: You are the assignee for the bug.=