[Bug 196844] [patch][doc] Add EXAMPLES section to kqueue(2) man page

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 12 Apr 2022 03:29:03 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196844

--- Comment #17 from PauAmma <pauamma@gundo.com> ---
Comment on attachment 233152
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=233152
Fix EXAMPLE in kqueue.2

>-	    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'\n", argv[1]);

\en, since this is a manual page, not a C source file.

-- 
You are receiving this mail because:
You are the assignee for the bug.