diff options
Diffstat (limited to 'src/pulsecore/rtpoll.c')
-rw-r--r-- | src/pulsecore/rtpoll.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pulsecore/rtpoll.c b/src/pulsecore/rtpoll.c index 0f09c7d0..e43ec610 100644 --- a/src/pulsecore/rtpoll.c +++ b/src/pulsecore/rtpoll.c @@ -383,7 +383,8 @@ finish: } } - errno = saved_errno; + if (r < 0) + errno = saved_errno; return r; } |