From: "Laurent Bercot" <ska-dietlibc@skarnet.org>
To: musl@lists.openwall.com
Subject: Re: Re: [PATCH] add SOCK_STREAM support for syslog
Date: Fri, 13 Apr 2018 01:54:21 +0000 [thread overview]
Message-ID: <eme87478b8-7434-4d03-a650-2872ac6fa38e@elzian> (raw)
In-Reply-To: <20180413003940.GR3094@brightrain.aerifal.cx>
>Yes, and it never really concluded. I think it's probably harmless to
>support SOCK_STREAM if users want it though.
I do want it. It's the first step towards a simple, non-bloated
implementation of syslogd. Please support SOCK_STREAM whenever there's
nothing more urgent to do. :P
>One question I had that never got answered: are SOCK_DGRAM and
>SOCK_STREAM unix socket addresses mutually exclusive, or can the same
>name be listening as both types?
They appear to be mutually exclusive.
execve("./test-socket", ["./test-socket"], [/* 24 vars */]) = 0
arch_prctl(ARCH_SET_FS, 0x602538) = 0
set_tid_address(0x602570) = 9828
socket(PF_LOCAL, SOCK_STREAM|SOCK_NONBLOCK, 0) = 3
setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
socket(PF_LOCAL, SOCK_DGRAM|SOCK_NONBLOCK, 0) = 4
setsockopt(4, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
unlink("/tmp/socket") = 0
bind(3, {sa_family=AF_LOCAL, sun_path="/tmp/socket"}, 110) = 0
bind(4, {sa_family=AF_LOCAL, sun_path="/tmp/socket"}, 110) = -1
EADDRINUSE (Address already in use)
--
Laurent
prev parent reply other threads:[~2018-04-13 1:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-21 10:47 Hrvoje Varga
2018-04-12 13:04 ` Hrvoje Varga
2018-04-13 0:39 ` Rich Felker
2018-04-13 1:54 ` Laurent Bercot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=eme87478b8-7434-4d03-a650-2872ac6fa38e@elzian \
--to=ska-dietlibc@skarnet.org \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).