make signal handlers errno safe
Obtained from: OpenBSD (file rev 1.5) Theo de Raadt <deraadt@openbsd.org>
This commit is contained in:
parent
4c33974251
commit
bd6b64117b
@ -34,7 +34,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: misc.c,v 1.7 1997/02/22 14:02:47 peter Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@ -91,8 +91,10 @@ void
|
||||
summaryx(notused)
|
||||
int notused;
|
||||
{
|
||||
int save_errno = errno;
|
||||
|
||||
summary();
|
||||
errno = save_errno;
|
||||
}
|
||||
|
||||
/* ARGSUSED */
|
||||
|
Loading…
x
Reference in New Issue
Block a user