chiark / gitweb /
core: modernize execution code a bit
authorLennart Poettering <lennart@poettering.net>
Thu, 8 Jan 2015 23:13:33 +0000 (00:13 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 9 Jan 2015 17:35:36 +0000 (18:35 +0100)
commitff0af2a1660bb122f29713c9b2aff8179f165bb7
tree6180d63b50c0264246ced05f91f11adb94dbf6c4
parentb914ea8d379b446c4c9fac4ba181771676ef38cd
core: modernize execution code a bit

Among other things, avoid log_struct() unless we really need it.

Also, use "r" as variable to store function errors in, instead of "err".
"r" is pretty much what we use everywhere else, hence using the same
here make sense.

FInally, in the child, when we want to log, make sure to open the
logging framework first, since it is explicitly closed in preparation
for the exec().
src/core/execute.c