From nobody Fri Feb 23 13:00:29 2024 X-Original-To: doc@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 4Th9996GRCz5CQlZ for ; Fri, 23 Feb 2024 13:00:29 +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 4Th9994wn0z4v2H 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=URb5v9WXqde/JGiBh5qvPu+I5bqBD8Uu/rbW/r9DynXWFY9SdqqoSxAwuRXJu5CjHs9+FL zKjtvNmFY07YeuduEa2vpfojj6+cIYFxAvC9yldIZMKVB01bXPgbss++6IvuQwL9VCKK9g rS4Z73jhenPhLcs4cLgSchBn3kW4YgenCwEMAIOrZaFzXnIfuLN6o0DuOZrqJvbwaWSvK/ bceksaMjHhv+I1Nrrdkc17nBIo1HSuyg8YKI07NTslwNqNcj3USKDhW655ipDRnCnOGWaL 844cQQsn2FSW2Zi4KDPbCtlRUwbVdpO43uV3HFBcA9oMTaiRovoHYhUqaDwCNw== 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=KL+uDCdQAvv3tCQKZahroXAnv+QYu09xBD0t6xf8nUo=; b=bsXqD1avvXndYasscRStrZi1F4Uz7d7dzflyFeP+rhuBDXxUoyBf+/wsGtA4LunjvmxBBZ ZspuFKoD3SLFoqMo4LgFpiSJxNQP1Nlaj9i7SUM22HS5jTe3p1xDk2Fmk5w6/jGgF8a2GM IhAIANosoDMNutpSYSTvdtwQ2k4tDE7iCzxGG9rDddxhNwoyNHEsWmCg3jBWHemlmRxht1 AAcYE2piVa4BsvPNYeQpaeO43bJ7+0gqAktE4iWIBr1WXdFyKDGBnUVwpJiSnpBkzyiVuP Nm8YyGkJoa8Pg8RLF4THOnwEVpOQOBY5gwNEyQK/be5wQpIUqwVRC+AqjRWw6Q== 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 4Th99940v9zGvF 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 41ND0T83040774 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 41ND0TxG040771 for doc@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: doc@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: CC 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: Documentation project List-Archive: https://lists.freebsd.org/archives/freebsd-doc List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-doc@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 on the CC list for the bug.=