libbb: Converted safe_read to safe_write format
authorMartin Lewis <martin.lewis.x84@gmail.com>
Sun, 15 Sep 2019 16:13:28 +0000 (18:13 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 9 Oct 2019 12:35:55 +0000 (14:35 +0200)
commitdd4686128290b34d61becaaba88c54d5213f7aa5
tree9faef97f6325c369246524a31d1e331a38bf7b6b
parentad27d44ebe950335616f37e36863469dc181b455
libbb: Converted safe_read to safe_write format

Changed safe_read to be symmetrical to safe_write, it shall
never return EINTR because it calls read multiple times,
the error is considered transient.

function                                             old     new   delta
safe_read                                             44      57     +13

Signed-off-by: Martin Lewis <martin.lewis.x84@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/read.c