From 66f59f040984bef5023fc844097b85bebee88f09 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 26 Jun 2012 15:18:52 +0930 Subject: tdb: finish weaning off err.h. Commit 3c4263e7580143c69225729f5b67f09c00add2fd said it removed err.h from tdb, unfortuntely it didn't: tap-interface.h still included it. This finishes it properly! Reported-by:Stefan Metzmacher Signed-off-by: Rusty Russell Autobuild-User(master): Rusty Russell Autobuild-Date(master): Tue Jun 26 10:22:03 CEST 2012 on sn-devel-104 --- lib/tdb/test/external-agent.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'lib/tdb/test/external-agent.c') diff --git a/lib/tdb/test/external-agent.c b/lib/tdb/test/external-agent.c index 139de76f9a..8140e70ead 100644 --- a/lib/tdb/test/external-agent.c +++ b/lib/tdb/test/external-agent.c @@ -108,12 +108,16 @@ struct agent *prepare_external_agent(void) int command[2], response[2]; char name[1+PATH_MAX]; - if (pipe(command) != 0 || pipe(response) != 0) - return NULL; + if (pipe(command) != 0 || pipe(response) != 0) { + fprintf(stderr, "pipe failed: %s\n", strerror(errno)); + exit(1); + } pid = fork(); - if (pid < 0) - return NULL; + if (pid < 0) { + fprintf(stderr, "fork failed: %s\n", strerror(errno)); + exit(1); + } if (pid != 0) { struct agent *agent = malloc(sizeof(*agent)); -- cgit