diff options
Diffstat (limited to 'usr.sbin/pcmciad/pcmciad.c')
-rw-r--r-- | usr.sbin/pcmciad/pcmciad.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/pcmciad/pcmciad.c b/usr.sbin/pcmciad/pcmciad.c index b744928ca5b..c204ac08c9b 100644 --- a/usr.sbin/pcmciad/pcmciad.c +++ b/usr.sbin/pcmciad/pcmciad.c @@ -450,10 +450,14 @@ child_death(sig) int sig; { int status; + int save_errno = errno; + if (wait(&status) == -1) { syslog(LOG_ERR, "wait error for signaled child: %m"); + errno = save_errno; return; } if (WEXITSTATUS(status) == 2) speaker_ok = 0; + errno = save_errno; } |