lkml.org 
[lkml]   [1998]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: lpr problems in 2.0->2.1?
Date
From
>And I changed my lpr filter recently, adding a program that calls
>tcdrain(1); apparently that's not legal on parallel port devices, so

No, it's not; the lp driver isn't buffered in the kernel, so when write()
returns you know that all the data has gone out. This means that draining the
buffer is never a meaningful thing to do.

(That's not to say that adding buffering might not be a good idea at some
point, though...)

p.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.045 / U:1.252 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site