Changing proto_socketpair.c compilation and linking order revealed
a problem - we should simply ignore proto_server() if address doesn't start with socketpair://, and not abort.
This commit is contained in:
parent
28993443b4
commit
2e1facf96f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=204177
@ -91,9 +91,12 @@ sp_connect(void *ctx __unused)
|
||||
}
|
||||
|
||||
static int
|
||||
sp_server(const char *addr __unused, void **ctxp __unused)
|
||||
sp_server(const char *addr, void **ctxp __unused)
|
||||
{
|
||||
|
||||
if (strcmp(addr, "socketpair://") != 0)
|
||||
return (-1);
|
||||
|
||||
assert(!"proto_server() not supported on socketpairs");
|
||||
abort();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user