sbr/execprog.c: Fix the return value
authormarkus schnalke <meillo@marmaro.de>
Thu, 12 Feb 2015 06:40:50 +0000 (07:40 +0100)
committermarkus schnalke <meillo@marmaro.de>
Thu, 12 Feb 2015 06:40:50 +0000 (07:40 +0100)
commit556440fbe435fee96348ca56e44c015149e5f7da
treee5bcf8308aa1b1a92cb071a982f976f62844c023
parent24493820bd28199ac23a81a5444cd2ebfb9c1f9c
sbr/execprog.c: Fix the return value

Use pidXwait(), which invokes pidstatus(), here for error reporting.
This eases the use of execprog() because we don't have to call it
there everytime. However, it might be unwanted to put the error
printing stuff into execprog() because we might have an invokation
of execprog() that want's to deal with errors itself in a different
way. If this would be the case, then we likely should change
pidXwait() to pidwait() and call pidstatus(execprog()).
sbr/execprog.c