K 10 svn:author V 6 marcel K 8 svn:date V 27 2014-07-26T15:46:41.506301Z K 7 svn:log V 375 Don't return ERESTART when the device is gone. In ttydev_leave() ERESTART is the indication that draining got interrupted due to a revoke(2) and that tty_drain() is to be called again for draining to complete. If the device is flagged as gone, then waiting/draining is not possible. Only return ERESTART when waiting is still possible. Obtained from: Juniper Networks, Inc. END