1
0
mirror of https://github.com/golang/go synced 2024-11-23 05:00:07 -07:00

log/syslog: try /var/run/log, for FreeBSD

Fixes #8449.

LGTM=iant
R=golang-codereviews, iant
CC=bradfitz, golang-codereviews
https://golang.org/cl/145600044
This commit is contained in:
Russ Cox 2014-09-30 12:30:16 -04:00
parent c75f81f0ed
commit 5a1906dc47

View File

@ -16,7 +16,7 @@ import (
func unixSyslog() (conn serverConn, err error) {
logTypes := []string{"unixgram", "unix"}
logPaths := []string{"/dev/log", "/var/run/syslog"}
logPaths := []string{"/dev/log", "/var/run/syslog", "/var/run/log"}
for _, network := range logTypes {
for _, path := range logPaths {
conn, err := net.Dial(network, path)