SMOLNET PORTAL home about changes
iprint error if creating a socket() failed - teed - A multiplex relay tee(1) daemon.	Err	bitreich.org	70
hgit clone git://bitreich.org/teed git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/teed	URL:git://bitreich.org/teed git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/teed	bitreich.org	70
1Log	/scm/teed/log.gph	bitreich.org	70
1Files	/scm/teed/files.gph	bitreich.org	70
1Refs	/scm/teed/refs.gph	bitreich.org	70
1Tags	/scm/teed/tag	bitreich.org	70
1README	/scm/teed/file/README.md.gph	bitreich.org	70
1LICENSE	/scm/teed/file/LICENSE.gph	bitreich.org	70
i---	Err	bitreich.org	70
1commit b5674ba2b8612d190d7f61ed4816f56f7e1e9381	/scm/teed/commit/b5674ba2b8612d190d7f61ed4816f56f7e1e9381.gph	bitreich.org	70
1parent 8d1db0f43e921b998a06dd61d1442220db29ee89	/scm/teed/commit/8d1db0f43e921b998a06dd61d1442220db29ee89.gph	bitreich.org	70
hAuthor: Hiltjo Posthuma <hiltjo@codemadness.org>	URL:mailto:hiltjo@codemadness.org	bitreich.org	70
iDate:   Mon, 14 Aug 2023 14:22:26 +0200	Err	bitreich.org	70
i	Err	bitreich.org	70
iprint error if creating a socket() failed	Err	bitreich.org	70
i	Err	bitreich.org	70
iSigned-off-by: Christoph Lohmann <20h@r-36.net>	Err	bitreich.org	70
i	Err	bitreich.org	70
iDiffstat:	Err	bitreich.org	70
i  M teed.c                              |       4 +++-	Err	bitreich.org	70
i	Err	bitreich.org	70
i1 file changed, 3 insertions(+), 1 deletion(-)	Err	bitreich.org	70
i---	Err	bitreich.org	70
1diff --git a/teed.c b/teed.c	/scm/teed/file/teed.c.gph	bitreich.org	70
i@@ -173,8 +173,10 @@ main(int argc, char *argv[])	Err	bitreich.org	70
i         on = 1;	Err	bitreich.org	70
i         for (i = 0; i < 2; i++) {	Err	bitreich.org	70
i                 lfd = socket(AF_UNIX, SOCK_STREAM, 0);	Err	bitreich.org	70
i-                if (lfd < 0)	Err	bitreich.org	70
i+                if (lfd < 0) {	Err	bitreich.org	70
i+                        perror("socket");	Err	bitreich.org	70
i                         goto stop_serving;	Err	bitreich.org	70
i+                }	Err	bitreich.org	70
i                 if (setsockopt(lfd, SOL_SOCKET, SO_REUSEADDR,	Err	bitreich.org	70
i                                 &on, sizeof(on)) < 0) {	Err	bitreich.org	70
i                         perror("setsockopt");	Err	bitreich.org	70
.
Response: text/plain
Original URLgopher://bitreich.org/0/scm/teed/commit/b5674ba2b8612d190...
Content-Typetext/plain; charset=utf-8