summaryrefslogtreecommitdiffstats
path: root/usr.sbin/syslogd (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Return an error much earlier if recvmsg failsderaadt2012-04-041-2/+4
|
* Allow syslogc -n XX to display less than the whole file, and -n XX -f tosthen2011-07-121-3/+7
| | | | display more/less than the default of 10. ok mpf@ jmc@
* shuffle some things around to deal with incomplete typesjsg2010-04-301-0/+1
| | | | | gcc4 gets upset about. based on suggestions from miod@, ok millert@
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-272-23/+2
| | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
* write UNIX-domain in a more consistent way; while here, replace asobrado2009-10-221-5/+5
| | | | | | | | few remaining ".Tn UNIX" macros with ".Ux" ones. pointed out by ratchov@, thanks! ok jmc@
* use the UNIX-related macros (.At and .Ux) where appropriate.sobrado2009-10-221-4/+4
| | | | ok jmc@
* Remove some whitespace.brad2008-11-231-3/+3
|
* initialize both sides of the lockpipe (only used in debug mode) to -1 toderaadt2008-09-291-3/+3
| | | | have averted the bug found in pr 5938
* do not close a random file descriptor in debug mode, PR 5938 from mickeyderaadt2008-09-291-2/+2
|
* If a |program is too slow to process the input,mpf2008-04-211-3/+15
| | | | | | | drop messages rather than to kill and restart it. Also log this error, but limited at a 2 minute rate. Discussed with henning. OK henning@
* msg_controllen has to be CMSG_SPACE so that the kernel can account forderaadt2008-03-241-3/+3
| | | | | | | each cmsg_len (ie. msg_controllen = sum of CMSG_ALIGN(cmsg_len). This works now that kernel fd passing has been fixed to accept a bit of sloppiness because of this ABI repair. lots of discussion with kettenis
* avoid errno trashing, ok mpf henningderaadt2008-03-161-3/+5
|
* syslogd leaves zombies around if multiple |/pathto/mylogprogmpf2008-03-161-6/+4
| | | | | | children died in a row. Do waitpid(2) in a loop until there's nothing left. OK henning@, millert@
* Repair the simple cases for msg_controllen where it should just bederaadt2008-03-151-3/+3
| | | | | CMSG_SIZE(sizeof(int)), not sizeof(buffer) which may be larger because of alignment; ok kettenis hshoexer
* Correct CMSG_SPACE and CMSG_LEN usage everywhere in the tree. Due toderaadt2008-03-131-7/+13
| | | | an extensive discussion with otto, kettenis, millert, and hshoexer
* remove "unused variable" warningschl2007-10-171-4/+3
| | | | | | tested by deraadt@ on a gcc2 arch looks ok ray@ ok deraadt@
* Initialize length variable slen properly to avoid possible EINVALbluhm2007-09-071-2/+3
| | | | | errors from setsockopt(2) in function double_rbuf(). ok markus@ mpf@
* convert to new .Dd format;jmc2007-05-312-4/+4
|
* - use getaddrinfo() instead of gethostbyname/getservbynamejason2007-05-022-25/+51
| | | | | - reserve a poll descriptor entry for INET6 (not used yet) ok henning
* Preserve the contents of the memory buffers when syslogd reinitializescanacar2007-03-301-13/+54
| | | | | logs in response to a HUP signal, as long as /etc/syslog.conf remains unchanged. ok mpf@
* use warnx and not logerror in monitor, logerror is for the slave;djm2007-03-151-5/+7
| | | | ok henning@ while in lock
* mention log to pipe in the blurb here. the details are all in syslog.conf.5,henning2007-03-061-3/+4
| | | | the syslogd.8 blurb has just a list.
* Create "syslogd: restart" message after the setup of signalmpf2007-02-211-6/+9
| | | | | | | handlers. This prevents a race where syslogd could die on SIGPIPE at startup. Also distinguish between start and restart. OK henning@
* document syslog to other programs, ok jmchenning2007-02-201-2/+12
|
* implement logging to other program's stdin.henning2007-02-202-17/+139
| | | | | | | | | | if the target is like "| /path/to/program", syslogd forks and execs program and sends the selected log messages to program's stdin. uses a socketpair, grows the receive buffer on the reader side and has the socket nonblocking on syslog'd side to prevent syslogd blocking. I'm using that here to feed logsurfer from ports for automated log analysis, werks beautifully. lots of input & help mpf, ok mpf djm "no objections" millert
* Support for continuous reading of syslog memory buffers.mpf2007-01-031-18/+107
| | | | | Works like ``tail -f'' on a log file. OK markus@, djm@
* check that stdio file descriptors are actually closed before clobberingdjm2006-09-171-6/+7
| | | | them, following an identical change in openssh
* Use sigaction() instead of signal() in the parent and use themillert2006-07-091-7/+15
| | | | | | | SA_NOCLDSTOP flag for the SIGCHLD handler so the kernel does not notify us when the child has been stopped, only when it exits. Fixes a problem where if you suspended the child process the parent would exit. OK otto@
* CAVEATSray2006-06-221-1/+5
| | | | | | | | syslogd does not create files, it only logs to existing ones. From millert@: http://marc.theaimsgroup.com/?m=106329875409953 ``Good idea'' millert@, ``fine by me too'' jmc@
* - mention ftp facility keyword.niallo2006-02-181-2/+2
| | | | ok jmc@
* unlink() pid file on exit. ok deraadt@moritz2005-12-021-1/+2
|
* rearrange sanity checks to eliminate signed arithmatic, from stevesk@djm2005-09-211-5/+5
|
* reorder tests for improved sanity, from stevesk@djm2005-09-161-2/+5
|
* unneeded headers, from stevesk@djm2005-09-161-4/+1
|
* If any of fds 0-2 are not open, dup them to our /dev/null fd.millert2005-06-101-4/+12
| | | | Prevents the socket from being closed in this case. OK deraadt@
* memory leak on SIGHUP for memory buffer logs, based on fix by Stephen Marley;djm2005-06-063-3/+15
| | | | ok avsm@
* fix fd leak on SIGHUP after config change, spotted by Stephen Marley; ok avsm@djm2005-06-061-1/+3
|
* noo need for endpwent() here at all, ok theohenning2005-05-231-2/+1
|
* setres[ug]id; ok deraadt@djm2005-05-031-13/+6
|
* avoid looping on failed tty or /dev/console writes and just drop the messagedjm2005-04-211-4/+6
| | | | noticed by newell AT cei.net; ok avsm@ deraadt@
* shutdown the inetd socket for reading if secure; ok deraadtmarkus2005-03-121-16/+16
|
* avoid a null dereference when using membufs.danh2004-12-221-10/+11
| | | | ok otto@ millert@
* silently ignore some cases when sendto(2) fails rather than disablingdanh2004-12-211-4/+14
| | | | | | | | logging to a remote host. Similar patch sent by Marc Huber <Marc.Huber@web.de> in PR4044. ok deraadt@ henning@ millert@
* Fix one case of broken duplicate supression, which happens if two linesotto2004-12-201-18/+58
| | | | | | | | | | | | | | in syslog.conf contain the same target file, and log entries matching both the first and second line get written. This changes behaviour: e.g. previously repeating a line caused a log entry to be written twice, but not any more. Also, if a later line with the same target has a different priority for a facility, the last one will be used. Noted by camield@; help from millert@. ok camield@ millert@ hshoexer@ deraadt@
* group paragraphs more logically;jmc2004-12-021-8/+8
| | | | suggested by michael knudsen;
* strchr("whatever", 0) returns non NULL. From Patrick Latifi.otto2004-11-111-3/+3
| | | | ok deraadt@ millert@
* portable code should not use that gcc __func__ specific junk when it is not neededderaadt2004-09-142-22/+24
|
* size_t vs ssize_t confusionderaadt2004-09-141-6/+8
|
* ARGSUSED before signal handler with unused signoderaadt2004-09-142-3/+7
|
* extra check for no message case; ok markus, deraadt, hshoexer, henningdjm2004-08-131-1/+5
|