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
This commit is contained in:
@ -1,5 +1,8 @@
|
|||||||
2001-07-02 Not Zed <NotZed@Ximian.com>
|
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.
|
||||||
|
|
||||||
* camel-folder-summary.c (summary_build_content_info): re-enable
|
* camel-folder-summary.c (summary_build_content_info): re-enable
|
||||||
html indexing.
|
html indexing.
|
||||||
|
|
||||||
|
@ -104,12 +104,12 @@ static int write_n(int fd, void *buffer, int inlen)
|
|||||||
|
|
||||||
static int camel_lock_helper_init(CamelException *ex)
|
static int camel_lock_helper_init(CamelException *ex)
|
||||||
{
|
{
|
||||||
/* FIXME: check returns */
|
|
||||||
if (pipe(lock_stdin_pipe) == -1
|
if (pipe(lock_stdin_pipe) == -1
|
||||||
|| pipe(lock_stdout_pipe) == -1) {
|
|| pipe(lock_stdout_pipe) == -1) {
|
||||||
camel_exception_setv(ex, CAMEL_EXCEPTION_SYSTEM,
|
camel_exception_setv(ex, CAMEL_EXCEPTION_SYSTEM,
|
||||||
_("Cannot build locking helper pipe: %s"),
|
_("Cannot build locking helper pipe: %s"),
|
||||||
strerror(errno));
|
strerror(errno));
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
lock_helper_pid = fork();
|
lock_helper_pid = fork();
|
||||||
|
Reference in New Issue
Block a user