core: get rid of ignored retval warning.
authorKrisztian Litkey <krisztian.litkey@intel.com>
Wed, 14 Nov 2012 12:15:39 +0000 (14:15 +0200)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Wed, 14 Nov 2012 12:24:15 +0000 (14:24 +0200)
src/core/console.c

index 21bd29f..9bc1c0f 100644 (file)
@@ -171,7 +171,8 @@ mrp_console_t *mrp_create_console(mrp_context_t *ctx, mrp_console_req_t *req,
         c->in.line = 0;
         c->in.fd   = -1;
 
-        pipe(c->pout);
+        if (pipe(c->pout) < 0)
+            mrp_log_warning("Failed to create console redirection pipe.");
         c->ofd = c->efd = -1;
 
         mrp_list_append(&ctx->consoles, &c->hook);