chiark / gitweb /
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)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:49:43 +0000 (07:49 +0200)
commitcef2ebd7970895b0d1186bf5f6b8cbe0ee455ff4
tree22b9c9d336dc9f30a95971c467bb444a728a5fdc
parent6b31c632bc5ce9b89031db22252443795ed576b7
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