summaryrefslogtreecommitdiff
path: root/linux/drivers/media
diff options
context:
space:
mode:
authorJohannes Stezenbach <devnull@localhost>2003-07-01 15:35:42 +0000
committerJohannes Stezenbach <devnull@localhost>2003-07-01 15:35:42 +0000
commit38b140daec1b73cbf37103389d8a0c81742c640b (patch)
tree0dfe79b565e50b18ee92b675b35f5de1be077d61 /linux/drivers/media
parente4454a7ce06d63bb81ab7d436a868063aed1a216 (diff)
downloadmediapointer-dvb-s2-38b140daec1b73cbf37103389d8a0c81742c640b.tar.gz
mediapointer-dvb-s2-38b140daec1b73cbf37103389d8a0c81742c640b.tar.bz2
report EINTR if dvr write gets interrupted
Diffstat (limited to 'linux/drivers/media')
-rw-r--r--linux/drivers/media/dvb/dvb-core/dvb_demux.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvb_demux.c b/linux/drivers/media/dvb/dvb-core/dvb_demux.c
index affe8b3a8..625f41c05 100644
--- a/linux/drivers/media/dvb/dvb-core/dvb_demux.c
+++ b/linux/drivers/media/dvb/dvb-core/dvb_demux.c
@@ -1052,10 +1052,11 @@ static int dvbdmx_write(struct dmx_demux *demux, const char *buf, size_t count)
if (down_interruptible (&dvbdemux->mutex))
return -ERESTARTSYS;
-
dvb_dmx_swfilter(dvbdemux, buf, count);
-
up(&dvbdemux->mutex);
+
+ if (signal_pending(current))
+ return -EINTR;
return count;
}