FreeBSD 6.1: open(/dev/lpt0, O_WRONLY) hangs up

2006-07-19 Thread george+freebsd
Print jobs get into my print queu, but they don't get out. So I started debugging lpd. After a lot of screwing around, I discovered that the program was hanging up on line 1875 of printjob.c: pfd = open(pp->lp, pp->rw ? O_RDWR : O_WRONLY); pp->lp is "/dev/lpt0" pp->rw is 0 So then I re

P.S. FreeBSD 6.1: open(/dev/lpt0, O_WRONLY) hangs up

2006-07-19 Thread george+freebsd
P.S. Here's what dmesg has to say about my parallel port: ppc0: port 0x378-0x37f,0x778-0x77b irq 7 drq 3 on acpi0 ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/16 bytes threshold ppbus0: on ppc0 ppbus0: IEEE1284 device found /NIBBLE/ECP Probing for PnP devices

More FreeBSD 6.1: open(/dev/lpt0, O_WRONLY) hangs up

2006-07-19 Thread george+freebsd
More information about my /dev/lpt0 problem: 1. Enabling or disabling ACPI has no effect. 2. If I boot up in single user mode, I can cat a file to /dev/lpt0 and it prints on the printer. 3. Once I go to mutliuser mode, open("/dev/lpt0",O_WRONLY) hangs forever whether I start lpd or not. 4. If I "s