mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
MFp4 @229480:
Shutdown write direction of the routing socket. We only need to read from it. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
7fdc27bc51
commit
e374cef518
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=252625
@ -476,6 +476,8 @@ main(int argc, char *argv[])
|
||||
|
||||
if ((routefd = socket(PF_ROUTE, SOCK_RAW, 0)) != -1)
|
||||
add_protocol("AF_ROUTE", routefd, routehandler, ifi);
|
||||
if (shutdown(routefd, SHUT_WR) < 0)
|
||||
error("can't shutdown route socket: %m");
|
||||
|
||||
/* set up the interface */
|
||||
discover_interfaces(ifi);
|
||||
|
Loading…
Reference in New Issue
Block a user