dovecot-2.0: gdbhelper: Check wait() status result a bit more co...

dovecot at dovecot.org dovecot at dovecot.org
Mon Apr 5 10:36:34 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/3b8542d58181
changeset: 11075:3b8542d58181
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Apr 05 10:36:31 2010 +0300
description:
gdbhelper: Check wait() status result a bit more correctly.

diffstat:

 src/util/gdbhelper.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r c32f55615055 -r 3b8542d58181 src/util/gdbhelper.c
--- a/src/util/gdbhelper.c	Mon Apr 05 09:18:14 2010 +0300
+++ b/src/util/gdbhelper.c	Mon Apr 05 10:36:31 2010 +0300
@@ -48,7 +48,7 @@
 
 		if (wait(&status) < 0)
 			i_fatal("wait() failed: %m");
-		if (status != 0) {
+		if (!WIFEXITED(status) || WEXITSTATUS(status) != 0) {
 			char buf[1024];
 			ssize_t ret;
 


More information about the dovecot-cvs mailing list