~ubuntu-branches/ubuntu/quantal/lxc/quantal-201209191812

« back to all changes in this revision

Viewing changes to src/lxc/conf.c

  • Committer: Serge Hallyn
  • Date: 2012-09-07 03:09:57 UTC
  • Revision ID: serge.hallyn@ubuntu.com-20120907030957-z2mzf0pahbhnri2t
0214-give-pclose-errno: help debug pclose failures when lxc runs scripts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
282
282
 
283
283
        free(output);
284
284
 
285
 
        if (pclose(f)) {
286
 
                ERROR("Script exited on error");
 
285
        if (pclose(f) == -1) {
 
286
                SYSERROR("Script exited on error");
287
287
                return -1;
288
288
        }
289
289