Tool/software: Linux
Hi,
Currently 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. This board is having two USB ports.
Thermal printer (model: OM9500-II) is connected to one of the USB port(/dev/usb/lp0).
Then initiating print using the below system call. Print content is present in the text file "PdfsForPrint/2.txt".
system("php /opt/sdk/printerdriver/print.php PdfsForPrint/2.txt > /dev/usb/lp0")
while executing the system call, Printer power is interrupted and expecting
system call to return with error. But in this scenario it is not at all returning from the system call and after some time
board is rebooted.
Can anyone tell me what are reasons to system call is not returning status?
Regards,
Mahipal Challa.