]> git.alsa-project.org Git - alsa-utils.git/commit
axfer: fix to return error code when a call of select(2) fails
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Wed, 30 Oct 2019 01:10:54 +0000 (10:10 +0900)
committerJaroslav Kysela <perex@perex.cz>
Wed, 30 Oct 2019 12:13:22 +0000 (13:13 +0100)
commit1c17128410c09f74ef41b71abe77215193c5cdaf
tree8bdb4bb1f54974e0ca49824a3c114892f0145ae4
parent178a1f187caeef0c0a883c132ab9de5124b6cdc4
axfer: fix to return error code when a call of select(2) fails

A call of select(2) returns negative code and report errors via errno
local variable, howver current waiter implementation for select(2)
returns the negative code instead of errno.

This commit fixes it.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
axfer/waiter-select.c