]> rtime.felk.cvut.cz Git - sojka/can-utils.git/commit
slcanpty: detect that master PTY descriptor closed
authorOliver Hartkopp <socketcan@hartkopp.net>
Fri, 7 Jun 2013 18:02:57 +0000 (20:02 +0200)
committerOliver Hartkopp <socketcan@hartkopp.net>
Fri, 7 Jun 2013 18:02:57 +0000 (20:02 +0200)
commit704d5f22d1d2502ddcd4e231b733eeb642112653
tree621fe882ede6f3e953d8cc2897a3694d7efce10e
parentdf769772076020ab437a989ca1ba46b534b756d3
slcanpty: detect that master PTY descriptor closed

Terminate slcanpty when the pty file descriptor is closed instead of performing
an endless loop in the select() statement.

Reported-by: Janusz Uzycki <j.uzycki@elproma.com.pl>
Signed-off-by: Janusz Uzycki <j.uzycki@elproma.com.pl>
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
slcanpty.c