~ubuntu-branches/ubuntu/vivid/cctools/vivid

« back to all changes in this revision

Viewing changes to dttools/src/work_queue_status.c

  • Committer: Package Import Robot
  • Author(s): Michael Hanke
  • Date: 2012-03-30 12:40:01 UTC
  • mfrom: (9.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20120330124001-ze0lhxm5uwq2e3mo
Tags: 3.4.2-2
Added patch to handle a missing CFLAGS variable in Python's sysconfig
report (Closes: #661658).

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
#include "catalog_server.h"
10
10
#include "nvpair.h"
11
11
 
 
12
#include <errno.h>
12
13
#include <string.h>
13
14
#include <stdlib.h>
14
15
#include <sys/stat.h>
83
84
        }
84
85
 
85
86
        cq = catalog_query_create(CATALOG_HOST, CATALOG_PORT, time(0) + Work_Queue_Status_Timeout);
 
87
        if(!cq) {
 
88
                fprintf(stderr, "couldn't query catalog %s:%d: %s\n", CATALOG_HOST, CATALOG_PORT, strerror(errno));
 
89
                return 1;                                                                                                                                      
 
90
        }
86
91
 
87
92
        if(Work_Queue_Status_Mode == MODE_TABLE)
88
93
                nvpair_print_table_header(stdout, headers);