Author: Neil Readwin Not strictly fwtk stuff, but I know there are people on the list who are interested ... if you want to use the standard syslog(3) on SunOS 5.5.1 and are running chrooted then you do not get anything logged. That's because syslog(3) will only do the putmsg() if it fails to get a lock on the /etc/syslog.pid file (I assume syslogd keeps this locked). If you do "echo bogus > /opt/jail/etc/syslog.pid" and run the following then logging works again. Neil. #include #include static flock_t lock; main() { int fd, status; fd = open("/opt/jail/etc/syslog.pid", O_RDWR|O_APPEND); if (fd == -1) { perror("open"); exit(1); } lock.l_type = F_WRLCK; status = fcntl(fd, F_SETLK, &lock); if (status == -1) { perror("fcntl"); exit(1); } pause(); }