even if you write signal handlers to not do anything stupid when you're
authorespie <espie@openbsd.org>
Mon, 26 Jul 2010 10:59:32 +0000 (10:59 +0000)
committerespie <espie@openbsd.org>
Mon, 26 Jul 2010 10:59:32 +0000 (10:59 +0000)
commita0cd7c31973764af301e8ec535329c5e8122729e
tree3106ee978daacf85695ef1225244d25be76e5fff
parentbc51f5a6c1505730e724e6940369d24994af5779
even if you write signal handlers to not do anything stupid when you're
not on a terminal, they STILL interrupt long system calls and cause sysread
to fail, so disable them when they're not needed.

problem found by mlarkin@

this is just a band-aid, I guess I really need to "reset" non-needed signals
globally whenever I fork... sigh.
usr.sbin/pkg_add/OpenBSD/PackageRepository.pm