FreeBSD Bugzilla – Attachment 233158 Details for
Bug 196844
[patch][doc] Add EXAMPLES section to kqueue(2) man page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch with escape sequence properly escaped.
kqueue.2.diff (text/plain), 846 bytes, created by
Fernando ApesteguĂa
on 2022-04-12 06:29:59 UTC
(
hide
)
Description:
Patch with escape sequence properly escaped.
Filename:
MIME Type:
Creator:
Fernando ApesteguĂa
Created:
2022-04-12 06:29:59 UTC
Size:
846 bytes
patch
obsolete
>diff --git a/lib/libc/sys/kqueue.2 b/lib/libc/sys/kqueue.2 >index 8ba1779c5551..4606a78bec8c 100644 >--- a/lib/libc/sys/kqueue.2 >+++ b/lib/libc/sys/kqueue.2 >@@ -742,8 +742,6 @@ main(int argc, char **argv) > ret = kevent(kq, &event, 1, NULL, 0, NULL); > if (ret == -1) > err(EXIT_FAILURE, "kevent register"); >- if (event.flags & EV_ERROR) >- errx(EXIT_FAILURE, "Event error: %s", strerror(event.data)); > > for (;;) { > /* Sleep until something happens. */ >@@ -751,8 +749,12 @@ main(int argc, char **argv) > if (ret == -1) { > err(EXIT_FAILURE, "kevent wait"); > } else if (ret > 0) { >- printf("Something was written in '%s'\en", argv[1]); >- } >+ if (tevent.flags & EV_ERROR) >+ errx(EXIT_FAILURE, "Event error: %s", strerror(event.data)); >+ else >+ printf("Something was written in '%s'\en", argv[1]); >+} >+ > } > } > .Ed
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 196844
:
151802
|
169639
|
169715
|
233152
| 233158