dvdhrm / kmscon

Linux KMS/DRM based virtual Console Emulator
http://www.freedesktop.org/wiki/Software/kmscon
Other
433 stars 81 forks source link

pty: unblock all signals before exec'ing the child #10

Closed bluetech closed 12 years ago

bluetech commented 12 years ago

Hi, Thanks for merging the pty stuff. This is a fix for a problem I noticed but only now had time to look at. If you can think of a more generic solution that'd be even better, of course.

Ran

dvdhrm commented 12 years ago

Good catch. I've applied it with sigemptyset() and SIGSETMASK as I think this is more readable. Thanks! And yes, we probably need some kind of signal subsystem later if you intend to use multiple threads and/or SIGIGN and friends. However, for now its enough what we have.