* [PATCH] unix.7: tfix 'ret' check after accept populates 'data_socket'
@ 2016-05-12 8:24 W. Trevor King
[not found] ` <df1c8881c6f1632e714aa3a99ce6656e944be74c.1463041407.git.wking-vJI2gpByivqcqzYg7KEe8g@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: W. Trevor King @ 2016-05-12 8:24 UTC (permalink / raw)
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA, Heinrich Schuchardt, W. Trevor King
A typo from 15545eb6 (unix.7: Add example, 2016-01-06).
Signed-off-by: W. Trevor King <wking-vJI2gpByivqcqzYg7KEe8g@public.gmane.org>
---
man7/unix.7 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/man7/unix.7 b/man7/unix.7
index 64f7610..ca6a621 100644
--- a/man7/unix.7
+++ b/man7/unix.7
@@ -735,7 +735,7 @@ main(int argc, char *argv[])
/* Wait for incoming connection. */
data_socket = accept(connection_socket, NULL, NULL);
- if (ret == \-1) {
+ if (data_socket == \-1) {
perror("accept");
exit(EXIT_FAILURE);
}
--
2.1.0.60.g85f0837
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] unix.7: tfix 'ret' check after accept populates 'data_socket'
[not found] ` <df1c8881c6f1632e714aa3a99ce6656e944be74c.1463041407.git.wking-vJI2gpByivqcqzYg7KEe8g@public.gmane.org>
@ 2016-05-18 20:36 ` Michael Kerrisk (man-pages)
0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2016-05-18 20:36 UTC (permalink / raw)
To: W. Trevor King
Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
linux-man-u79uwXL29TY76Z2rM5mHXA, Heinrich Schuchardt
On 05/12/2016 10:24 AM, W. Trevor King wrote:
> A typo from 15545eb6 (unix.7: Add example, 2016-01-06).
>
> Signed-off-by: W. Trevor King <wking-vJI2gpByivqcqzYg7KEe8g@public.gmane.org>
Thanks, Trevor. Applied.
Cheers,
Michael
> ---
> man7/unix.7 | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/man7/unix.7 b/man7/unix.7
> index 64f7610..ca6a621 100644
> --- a/man7/unix.7
> +++ b/man7/unix.7
> @@ -735,7 +735,7 @@ main(int argc, char *argv[])
> /* Wait for incoming connection. */
>
> data_socket = accept(connection_socket, NULL, NULL);
> - if (ret == \-1) {
> + if (data_socket == \-1) {
> perror("accept");
> exit(EXIT_FAILURE);
> }
>
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-05-18 20:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-12 8:24 [PATCH] unix.7: tfix 'ret' check after accept populates 'data_socket' W. Trevor King
[not found] ` <df1c8881c6f1632e714aa3a99ce6656e944be74c.1463041407.git.wking-vJI2gpByivqcqzYg7KEe8g@public.gmane.org>
2016-05-18 20:36 ` Michael Kerrisk (man-pages)
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.