rxgen: Error out if cpp exits with error
authorAndrew Deason <adeason@sinenomine.net>
Wed, 4 Aug 2010 16:19:35 +0000 (11:19 -0500)
committerDerrick Brashear <shadow@dementia.org>
Fri, 6 Aug 2010 04:12:42 +0000 (21:12 -0700)
commitb832cdc1c7e462ca7c87ea16abdf694bac1bc272
treef22d1241fa25b311c3b6e2f3a1e5523dae1a71ad
parenta4267ef14008daad45c1a64edf5649fc6bb333f0
rxgen: Error out if cpp exits with error

If we call 'cpp' and it returns with an erroneous exit code, exit with
an error ourselves. Otherwise we will return success and generate
empty results even if the input file is unreadable, for instance,
which causes confusing errors later in the build.

Change-Id: Ia12dc58eee0937a6bd529dcd6b552e253dbc40c8
Reviewed-on: http://gerrit.openafs.org/2519
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/rxgen/rpc_main.c