p910nd version 0.9
Log says connection established, then the program stops accepting TCP traffic and locks up. Debugging shows that the "f" variable is uninitialized. Initializing f to NULL fixes the problem for me. I'd suggest in server() set f to NULL in the loop just before the while() testing for connection, then fclose(f) after printing that connection. That survives printer disconnection/reconnection better than leaving the file open. -- firstname.lastname@example.org
Log in to post a comment.