diff options
author | Not Zed <NotZed@Ximian.com> | 2001-07-02 21:59:39 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2001-07-02 21:59:39 +0800 |
commit | 06b7f5ef95e4bf9fe7a4fbf1b332cb39a786ac36 (patch) | |
tree | 367748c32e91ac8dd23c8e5c457f2615615f0b37 /camel/camel-lock-client.c | |
parent | 7a6820987961b25bc4f9fcd4c125b9b1731c1cc3 (diff) | |
download | gsoc2013-evolution-06b7f5ef95e4bf9fe7a4fbf1b332cb39a786ac36.tar gsoc2013-evolution-06b7f5ef95e4bf9fe7a4fbf1b332cb39a786ac36.tar.gz gsoc2013-evolution-06b7f5ef95e4bf9fe7a4fbf1b332cb39a786ac36.tar.bz2 gsoc2013-evolution-06b7f5ef95e4bf9fe7a4fbf1b332cb39a786ac36.tar.lz gsoc2013-evolution-06b7f5ef95e4bf9fe7a4fbf1b332cb39a786ac36.tar.xz gsoc2013-evolution-06b7f5ef95e4bf9fe7a4fbf1b332cb39a786ac36.tar.zst gsoc2013-evolution-06b7f5ef95e4bf9fe7a4fbf1b332cb39a786ac36.zip |
properly return error if we can't create pipes.
2001-07-02 Not Zed <NotZed@Ximian.com>
* camel-lock-client.c (camel_lock_helper_init): properly return
error if we can't create pipes.
svn path=/trunk/; revision=10677
Diffstat (limited to 'camel/camel-lock-client.c')
-rw-r--r-- | camel/camel-lock-client.c | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |