From 6f07e1ff6bec8f306e8aa1d59b8bcaa93ffa776e Mon Sep 17 00:00:00 2001 From: Rik Faith Date: Sat, 26 Aug 2000 10:36:44 +0000 Subject: Sync with Linux 2.4.0-test7 Add signal blocking support to all drivers (using control-z on a running direct-rendering client should work now) --- linux/gamma_dma.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'linux/gamma_dma.c') diff --git a/linux/gamma_dma.c b/linux/gamma_dma.c index a99f24ca..4a2acfb3 100644 --- a/linux/gamma_dma.c +++ b/linux/gamma_dma.c @@ -804,6 +804,16 @@ int gamma_lock(struct inode *inode, struct file *filp, unsigned int cmd, drm_flush_unblock(dev, lock.context, lock.flags); /* cleanup phase */ if (!ret) { +#if LINUX_VERSION_CODE >= 0x020400 /* KERNEL_VERSION(2,4,0) */ + sigemptyset(&dev->sigmask); + sigaddset(&dev->sigmask, SIGSTOP); + sigaddset(&dev->sigmask, SIGTSTP); + sigaddset(&dev->sigmask, SIGTTIN); + sigaddset(&dev->sigmask, SIGTTOU); + dev->sigdata.context = lock.context; + dev->sigdata.lock = dev->lock.hw_lock; + block_all_signals(drm_notifier, &dev->sigdata, &dev->sigmask); +#endif if (lock.flags & _DRM_LOCK_READY) gamma_dma_ready(dev); if (lock.flags & _DRM_LOCK_QUIESCENT) { -- cgit v1.2.3