diff options
author | Holger Waechtler <devnull@localhost> | 2003-01-08 16:04:44 +0000 |
---|---|---|
committer | Holger Waechtler <devnull@localhost> | 2003-01-08 16:04:44 +0000 |
commit | 9b3d3cf6fad7c32c45bf4eb501daee377fcd3529 (patch) | |
tree | 7b405435c165665c3444a0132c59ec215d330c55 /linux/drivers/media/dvb | |
parent | 4c26ab98be26ec96099890d896f8c7e03d3c50f6 (diff) | |
download | mediapointer-dvb-s2-9b3d3cf6fad7c32c45bf4eb501daee377fcd3529.tar.gz mediapointer-dvb-s2-9b3d3cf6fad7c32c45bf4eb501daee377fcd3529.tar.bz2 |
use writers count, not users count to decide if we want to shut down the frontend.
Now the frontend will get closed when no more users with write access have the frontend opened.
Diffstat (limited to 'linux/drivers/media/dvb')
-rw-r--r-- | linux/drivers/media/dvb/dvb-core/dvb_frontend.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvb_frontend.c b/linux/drivers/media/dvb/dvb-core/dvb_frontend.c index f709a143b..1ccc5e187 100644 --- a/linux/drivers/media/dvb/dvb-core/dvb_frontend.c +++ b/linux/drivers/media/dvb/dvb-core/dvb_frontend.c @@ -417,7 +417,7 @@ int dvb_frontend_is_exiting (struct dvb_frontend_data *fe) if (fe->exit) return 1; - if (fe->dvbdev->users == 1) + if (fe->dvbdev->writers == 1) if (jiffies - fe->release_jiffies > dvb_shutdown_timeout * HZ) return 1; |