mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Reference in a new issue