Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Feb 2024 13:00:29 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 240015] kqueue(2) manual example code is a bit wrong.
Message-ID:  <bug-240015-227-ikHOyOG0Md@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-240015-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-240015-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240015

--- Comment #1 from unitrunker <unitrunker@gmail.com> ---
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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-240015-227-ikHOyOG0Md>