*** ./qmail-popup.c.orig Mon Jun 15 03:53:16 1998 --- ./qmail-popup.c Sun Dec 31 15:00:56 2000 *************** *** 15,20 **** --- 15,21 ---- #include "timeoutwrite.h" void die() { _exit(1); } + void die_success() { _exit(0); } int saferead(fd,buf,len) int fd; char *buf; int len; { *************** *** 88,95 **** int wstat; int pi[2]; ! if (fd_copy(2,1) == -1) die_pipe(); ! close(3); if (pipe(pi) == -1) die_pipe(); if (pi[0] != 3) die_pipe(); switch(child = fork()) { --- 89,98 ---- int wstat; int pi[2]; ! if (fd_copy(2,1) == -1) { ! die_pipe(); ! close(3); ! } if (pipe(pi) == -1) die_pipe(); if (pi[0] != 3) die_pipe(); switch(child = fork()) { *************** *** 116,122 **** if (wait_pid(&wstat,child) == -1) die(); if (wait_crashed(wstat)) die_childcrashed(); if (wait_exitcode(wstat)) die_badauth(); ! die(); } void pop3_greet() { --- 119,125 ---- if (wait_pid(&wstat,child) == -1) die(); if (wait_crashed(wstat)) die_childcrashed(); if (wait_exitcode(wstat)) die_badauth(); ! die_success(); } void pop3_greet() {