summaryrefslogtreecommitdiffstats
path: root/scripts/basic/docproc.c
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2010-05-19 17:22:41 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2010-06-04 13:38:53 -0700
commitd261154057c27f6c1d256b6198b0ad08733f1758 (patch)
tree34c298f6a4390675b1e87a17893793d7e2925f1d /scripts/basic/docproc.c
parentee4063fa6bd801fa6ea045f23a2934db009b3dac (diff)
Staging: comedi: don't write to buffer if command finished
For write(), any data copied to the data buffer after the previously set up streaming acquisition command has finished won't be used, but a non-empty write() does not currently return 0 (or -EPIPE on error) after the command has finished until the data buffer has been filled up. Change this behavior to return 0 (or -EPIPE) any time after the command has finished, without bothering to fill up the buffer with more useless data. Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'scripts/basic/docproc.c')
0 files changed, 0 insertions, 0 deletions