terminal-util: return first error, not last in make_stdio()
authorLennart Poettering <lennart@poettering.net>
Fri, 22 Dec 2017 12:05:33 +0000 (13:05 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 25 Dec 2017 10:48:21 +0000 (11:48 +0100)
commit395195bb42abc37a25fea02f77af5fcce602e371
treed6cda3db750cad2c6770ee127447594543969f8c
parente43bc9f5266c266ff4c84018a0d5f24bd1d125e4
terminal-util: return first error, not last in make_stdio()

Just a minor tweak, making sure we execute as much as we can of the
funciton, but return the first error instead of the last we encounter.

This is usuelly how we do things when we have functions that continue on
the first error, so let's do it like that here too.
src/basic/terminal-util.c