Tool/software: Linux
I am working on a board based on TI Sitara 335x. using Sitara SDK Version 7.00.00, Ubuntu 12.04.5LTS, GNU/Linux 3.12.10-ti2013.12.01 armv71. Board is having two USB ports. i have connected a USB based thermal printer in one of the port.
Happy Condition:
When i try to invoke the print operation using the below command in normal condition it works fine and got the printout for the myfilename file. Works as expected.
php /opt/sdk/printerdriver/print.php en myfilename > /dev/usb/lp0
Problem Condition:
If i switch off the printer after executing the above command i expect the system call for this command should return a failure or return with any other status. but it actually hanging in the system call and i could not perform any other operation, the whole system is hanging. This is a unrecoverable condition. i tried setting time out for the system call still no improvement.
Could you please help me to recover from this observation?
With regards,
Murugesan Maikandan