OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
CVS: cvs.openbsd.org: src

From: Marc Espie (espiecvs.openbsd.org)
Date: Mon Jul 26 2010 - 05:59:32 CDT


CVSROOT: /cvs
Module name: src
Changes by: espiecvs.openbsd.org 2010/07/26 04:59:32

Modified files:
        usr.sbin/pkg_add/OpenBSD: PackageRepository.pm

Log message:
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.