Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Mar 1996 10:08:19 +0100 (MET)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        freebsd-current@FreeBSD.org (FreeBSD-current users)
Subject:   Re: system running with DEVFS
Message-ID:  <199603200908.KAA07568@uriah.heep.sax.de>
In-Reply-To: <Pine.BSF.3.91.960319191330.249G-100000@ki.net> from "Marc G. Fournier" at Mar 19, 96 07:22:23 pm

next in thread | previous in thread | raw e-mail | index | archive | help
As Marc G. Fournier wrote:

> 	One thing I'm curious about, though, is:
> 
> freebsd# ls -lt /devfs/log /dev/log
> srw-rw-rw-  1 root  wheel         0 Mar 19 19:11 /dev/log
> crw-------  2 root  wheel    7,   0 Mar 19 19:11 /devfs/log
> 
> 	The two log devices seem to be created differently, but I'm 
> wondering if it is something that should be worried about, or if it 
> doesn't matter?  I'm assuming that the "correct" mode is the one in
> /dev/log...but would like to confirm before I attempt to fix subr_log.c
> to duplicate this properly.

/dev/log is the "Unix domain socket" (s/Unix/Posix/, or s/Unix/Local/
if you like it better) for syslog.  Being a socket, it can only be
created at run-time by the application opening the socket.

Most likely, it should be /var/run/log instead (like /var/run/printer).

/devfs/log is an error.  It should be /devfs/klog instead:

j@uriah 1016% ls -l /dev/*log*
crw-------  1 root  wheel    7,   0 Feb 10  1995 /dev/klog
srw-rw-rw-  1 root  wheel         0 Mar 16 00:55 /dev/log=

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199603200908.KAA07568>