Do not terminate syslog() messages with a dot, as others daemons do.

This commit is contained in:
charnier 1997-12-02 12:25:39 +00:00
parent 5ea1ba746e
commit 9f2efa4db9
2 changed files with 16 additions and 15 deletions

View File

@ -27,7 +27,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.\" $Id$
.\" $Id: rpc.sprayd.8,v 1.4 1997/02/22 14:22:20 peter Exp $
.\"
.Dd June 22, 1994
.Dt RPC.SPRAYD 8
@ -38,17 +38,19 @@
.Sh SYNOPSIS
.Nm /usr/libexec/rpc.sprayd
.Sh DESCRIPTION
.Nm rpc.sprayd
.Nm Rpc.sprayd
is a server which records packets sent by the
.Xr spray 8
command and sends a traffic report to the originator of the packets.
The
.Nm rpc.sprayd
.Nm
daemon is normally invoked by
.Xr inetd 8 .
.Pp
.Nm rpc.sprayd
uses an RPC protocol defined in
.Nm Rpc.sprayd
uses an
.Tn RPC
protocol defined in
.Pa /usr/include/rpcsvc/spray.x .
.Sh SEE ALSO
.Xr spray 8

View File

@ -26,24 +26,23 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id$
*/
#ifndef lint
static char rcsid[] = "$Id$";
static const char rcsid[] =
"$Id$";
#endif /* not lint */
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <unistd.h>
#include <rpc/rpc.h>
#include <rpc/pmap_clnt.h>
#include <rpcsvc/spray.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <sys/socket.h>
#include <syslog.h>
#include <rpcsvc/spray.h>
#include <unistd.h>
static void spray_service __P((struct svc_req *, SVCXPRT *));
@ -112,12 +111,12 @@ main(argc, argv)
transp = svcudp_create(sock);
if (transp == NULL) {
syslog(LOG_ERR, "cannot create udp service.");
syslog(LOG_ERR, "cannot create udp service");
return 1;
}
if (!svc_register(transp, SPRAYPROG, SPRAYVERS, spray_service, proto)) {
syslog(LOG_ERR,
"unable to register (SPRAYPROG, SPRAYVERS, %s).",
"unable to register (SPRAYPROG, SPRAYVERS, %s)",
proto ? "udp" : "(inetd)");
return 1;
}