5b6d0e7e39
and use these timeout in the lpq, lpd and lprm programs. these stop hung remote printers that accept tcp connections but do not process jobs from hanging the whole system and letting the sysadmin have a clue about what is going on with this rogue printer. - add a -r flag to lpd to allow `of' filters for remote jobs. i know there are ways around this, but i just don't care. - add a -f flag to lpf to add missing carriage returns. useful when printing UNIX files to an, eg, LaserWriter that wants CR's as well as LF's in raw text. stair-stepped text is no fun. - implement child process accounting: we just have a limit on the number of children we can have (settable by the sysadmin), and we sleep when this number is reached. this can reduce malicious not-so-malicious attacks on the print server by a rogue remote client.. - use setproctitle() where appropriate so the sysadmin has a clue about what each of the lpd's here are doing. this was useful to help diagnose a problem (that the above child process accounting change reduces the lossages of) where a rogue client was attempting "lpq" operations on one stuck queue in rapid succession, causing the lpd server to be extremely slow, due to the large number of lpd processes running. i have been running these changes in production for about a year. |
||
---|---|---|
.. | ||
lprm.1 | ||
lprm.c | ||
Makefile |