From: Allen B. <ba...@lo...> - 2001-06-11 15:28:09
|
[Back from a great trip to Bryce and Zion National Parks. Highly reccommended! But wear a hat and use lots of sunscreen.] David Paschal wrote: > 1. ptal-mlcd and ptal-printd should now work properly from a hotplug script, > despite the lack of stdin/stdout/stderr file descriptors. Works. > 2. ptal-mlcd and ptal-printd now log to syslog in addition to standard output > or standard error, respectively. Seems to work. When the commands start and run OK, there doesn't seem to be any output! A test with bad command line arguments did put a line in /var/log/messages. Maybe each of the ptal- commands could put a "banner" line out to syslog on startup? > 3. ptal-printd should be more immune to ptal-mlcd hiccups (such as device > unplugs); previously it could exit due to a "broken pipe" signal. > > 4. ptal-mlcd will now refuse to start if another instance of ptal-mlcd is > already running using the same PTAL device name (socket). Rapidly pulled and inserted the USB plug 3 times and got these messages in /var/log/messages: Jun 11 11:06:21 guanaco kernel: usb.c: USB disconnect on device 5 Jun 11 11:06:22 guanaco ptal-mlcd: ptal-mlcd: ERROR at ExMgr.cpp:2182, dev=<usb:0>, pid=3879, errno=19 Jun 11 11:06:22 guanaco ptal-mlcd: llioService: llioRead returns -1, expected=6! Jun 11 11:06:22 guanaco ptal-mlcd: ptal-mlcd: ERROR at ExMgr.cpp:888, dev=<usb:0>, pid=3879, errno=25 Jun 11 11:06:22 guanaco ptal-mlcd: exClose(reason=0x0010) Jun 11 11:06:23 guanaco kernel: hub.c: USB new device connect on bus1/1, assigned device number 6 Jun 11 11:06:23 guanaco ptal-mlcd: ptal-mlcd: ERROR at ExMgr.cpp:2095, dev=<usb:0>, pid=3879, errno=19 Jun 11 11:06:23 guanaco ptal-mlcd: llioOpen: open failed! Jun 11 11:06:23 guanaco ptal-mlcd: ptal-mlcd: FATAL ERROR at ExMgr.cpp:793, dev=<usb:0>, pid=3879, errno=19 Jun 11 11:06:23 guanaco ptal-mlcd: exActivate: Exiting due to activation failure. Jun 11 11:06:23 guanaco kernel: printer.c: usblp0: USB Bidirectional printer dev 6 if 0 alt 0 Jun 11 11:06:24 guanaco kernel: usb.c: USB disconnect on device 6 Jun 11 11:06:24 guanaco ptal-mlcd: ptal-mlcd: ERROR at ExMgr.cpp:2095, dev=<usb:0>, pid=4902, errno=19 Jun 11 11:06:24 guanaco ptal-mlcd: llioOpen: open failed! Jun 11 11:06:24 guanaco ptal-mlcd: ptal-mlcd: FATAL ERROR at ExMgr.cpp:793, dev=<usb:0>, pid=4902, errno=25 Jun 11 11:06:24 guanaco ptal-mlcd: exActivate: Exiting due to activation failure. Jun 11 11:06:24 guanaco kernel: hub.c: USB new device connect on bus1/1, assigned device number 7 Jun 11 11:06:24 guanaco kernel: printer.c: usblp0: USB Bidirectional printer dev 7 if 0 alt 0 Jun 11 11:06:25 guanaco kernel: usb.c: USB disconnect on device 7 Jun 11 11:06:26 guanaco ptal-mlcd: ptal-mlcd: ERROR at ExMgr.cpp:2095, dev=<usb:0>, pid=4941, errno=19 Jun 11 11:06:26 guanaco ptal-mlcd: llioOpen: open failed! Jun 11 11:06:26 guanaco ptal-mlcd: ptal-mlcd: FATAL ERROR at ExMgr.cpp:793, dev=<usb:0>, pid=4941, errno=25 Jun 11 11:06:26 guanaco ptal-mlcd: exActivate: Exiting due to activation failure. Jun 11 11:06:26 guanaco kernel: hub.c: USB new device connect on bus1/1, assigned device number 8 Jun 11 11:06:27 guanaco kernel: printer.c: usblp0: USB Bidirectional printer dev 8 if 0 alt 0 Is this correct? There was only one instance of ptal-mlcd running after all of that (but there were 4 ptal-printd's, also started by the hotplug script). Allen |