http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48018

--- Comment #2 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot 
Uni-Bielefeld.DE> 2011-03-09 15:55:06 UTC ---
> --- Comment #1 from Ian Lance Taylor <ian at airs dot com> 2011-03-09 
> 06:24:43 UTC ---
> I'm not sure it matters to the syslog writer that Solaris syslog uses 
> STREAMS. 
> I think it only matters to the syslog daemon itself.

I don't think so: vsyslog() in libc (as can be seen in the OpenSolaris
sources: usr/src/lib/libc/port/gen/syslog.c) uses putmsg to communicate
with syslogd.

> What happens if you add /dev/conslog to logPaths in unixSyslog in
> libgo/go/syslog/syslog.go?

Fails: in truss, one sees

10807/4:        so_socket(PF_UNIX, SOCK_STREAM, 0, "", SOV_DEFAULT) = 3
10807/4:        fcntl(3, F_SETFD, 0x00000001)                   = 0
10807/4:        setsockopt(3, SOL_SOCKET, SO_REUSEADDR, 0xFE48F4A0, 4,
SOV_DEFAULT) = 0
10807/4:        setsockopt(3, SOL_SOCKET, SO_BROADCAST, 0xFE48F4A8, 4,
SOV_DEFAULT) = 0
10807/4:        connect(3, 0xFE4B5588, 15, SOV_DEFAULT)         Err#95 ENOTSOCK
10807/4:                AF_UNIX  name = /dev/conslog

This isn't a unix domain socket and cannot be used as such.

    Rainer

Reply via email to