From 06b7f5ef95e4bf9fe7a4fbf1b332cb39a786ac36 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Mon, 2 Jul 2001 13:59:39 +0000 Subject: properly return error if we can't create pipes. 2001-07-02 Not Zed * camel-lock-client.c (camel_lock_helper_init): properly return error if we can't create pipes. svn path=/trunk/; revision=10677 --- camel/camel-lock-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'camel/camel-lock-client.c') diff --git a/camel/camel-lock-client.c b/camel/camel-lock-client.c index d55bb5ff15..a2dc1e591a 100644 --- a/camel/camel-lock-client.c +++ b/camel/camel-lock-client.c @@ -104,12 +104,12 @@ static int write_n(int fd, void *buffer, int inlen) static int camel_lock_helper_init(CamelException *ex) { - /* FIXME: check returns */ if (pipe(lock_stdin_pipe) == -1 || pipe(lock_stdout_pipe) == -1) { camel_exception_setv(ex, CAMEL_EXCEPTION_SYSTEM, _("Cannot build locking helper pipe: %s"), strerror(errno)); + return -1; } lock_helper_pid = fork(); -- cgit v1.2.3