Date: Tue, 24 Jul 2018 14:50:33 +0000 (UTC) From: Kirill Ponomarev <krion@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r475258 - in head/net/sniproxy: . files Message-ID: <201807241450.w6OEoXZ6077220@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: krion Date: Tue Jul 24 14:50:33 2018 New Revision: 475258 URL: https://svnweb.freebsd.org/changeset/ports/475258 Log: Utilize SOCK_NONBLOCK instead of O_NONBLOCK Fix startup script PR: 230001 Submitted by: david@dcrosstech.com Added: head/net/sniproxy/files/patch-src_connection.c (contents, props changed) Modified: head/net/sniproxy/Makefile head/net/sniproxy/files/sniproxy.in Modified: head/net/sniproxy/Makefile ============================================================================== --- head/net/sniproxy/Makefile Tue Jul 24 14:11:11 2018 (r475257) +++ head/net/sniproxy/Makefile Tue Jul 24 14:50:33 2018 (r475258) @@ -2,6 +2,7 @@ PORTNAME= sniproxy DISTVERSION= 0.5.0 +PORTREVISION= 1 CATEGORIES= net MAINTAINER= krion@FreeBSD.org Added: head/net/sniproxy/files/patch-src_connection.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/sniproxy/files/patch-src_connection.c Tue Jul 24 14:50:33 2018 (r475258) @@ -0,0 +1,11 @@ +--- src/connection.c.orig 2018-07-24 14:47:02 UTC ++++ src/connection.c +@@ -111,7 +111,7 @@ accept_connection(struct Listener *listener, struct ev + int sockfd = accept4(listener->watcher.fd, + (struct sockaddr *)&con->client.addr, + &con->client.addr_len, +- O_NONBLOCK); ++ SOCK_NONBLOCK); + #else + int sockfd = accept(listener->watcher.fd, + (struct sockaddr *)&con->client.addr, Modified: head/net/sniproxy/files/sniproxy.in ============================================================================== --- head/net/sniproxy/files/sniproxy.in Tue Jul 24 14:11:11 2018 (r475257) +++ head/net/sniproxy/files/sniproxy.in Tue Jul 24 14:50:33 2018 (r475258) @@ -22,7 +22,7 @@ rcvar=sniproxy_enable command=%%PREFIX%%/sbin/sniproxy -pidfile=${sniproxy_pidfile:-"/var/run/sniproxy.pid +pidfile=${sniproxy_pidfile:-"/var/run/sniproxy.pid"} sniproxy_enable=${sniproxy_enable:-"NO"} sniproxy_conf=${sniproxy_conf:-"%%PREFIX%%/etc/sniproxy.conf"}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201807241450.w6OEoXZ6077220>