public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* block_all_signals() usage in DRM
@ 2015-05-25 14:59 Richard Weinberger
  2015-05-25 16:50 ` Oleg Nesterov
  2015-05-25 21:31 ` Dave Airlie
  0 siblings, 2 replies; 5+ messages in thread
From: Richard Weinberger @ 2015-05-25 14:59 UTC (permalink / raw)
  To: airlied; +Cc: dri-devel, linux-kernel@vger.kernel.org, oleg@redhat.com

Hi!

drivers/gpu/drm/drm_lock.c is the only remaining user of block_all_signals():
        /* don't set the block all signals on the master process for now
         * really probably not the correct answer but lets us debug xkb
         * xserver for now */
        if (!file_priv->is_master) {
                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 = master->lock.hw_lock;
                block_all_signals(drm_notifier, dev, &dev->sigmask);
        }

Is this functionality still in use/needed?
Otherwise we could get rid of block_all_signals() and unpuzzle the signaling
code a bit. :-)

Thanks,
//richard

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-05-25 21:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-25 14:59 block_all_signals() usage in DRM Richard Weinberger
2015-05-25 16:50 ` Oleg Nesterov
2015-05-25 17:15   ` Richard Weinberger
2015-05-25 21:36   ` Dave Airlie
2015-05-25 21:31 ` Dave Airlie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox