From 38b140daec1b73cbf37103389d8a0c81742c640b Mon Sep 17 00:00:00 2001 From: Johannes Stezenbach Date: Tue, 1 Jul 2003 15:35:42 +0000 Subject: report EINTR if dvr write gets interrupted --- linux/drivers/media/dvb/dvb-core/dvb_demux.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'linux/drivers/media') 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; } -- cgit v1.2.3