[Pkg-wmaker-commits] [wmbiff] 33/77: waitpid until done
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Thu Aug 20 03:01:09 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to tag wmbiff_0_4_0
in repository wmbiff.
commit d96776e37ff278818bb68c8324351e399609d56d
Author: bluehal <bluehal>
Date: Mon Apr 15 01:58:35 2002 +0000
waitpid until done
---
wmbiff/ShellClient.c | 3 +--
wmbiff/wmbiff.c | 6 +++---
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/wmbiff/ShellClient.c b/wmbiff/ShellClient.c
index 9c030bf..2b758dc 100644
--- a/wmbiff/ShellClient.c
+++ b/wmbiff/ShellClient.c
@@ -121,8 +121,7 @@ int shellCmdCheck(Pop3 pc)
} else if (sscanf(linebuf, "%9s\n", pc->TextStatus) == 1) {
/* validate the string input */
int i;
- for (i = 0;
- pc->TextStatus[i] != '\0' && isalnum(pc->TextStatus[i])
+ for (i = 0; pc->TextStatus[i] != '\0' && isalnum(pc->TextStatus[i])
&& i < 10; i++);
if (pc->TextStatus[i] != '\0') {
SH_DM(pc, DEBUG_ERROR,
diff --git a/wmbiff/wmbiff.c b/wmbiff/wmbiff.c
index a0a95eb..0ebb207 100644
--- a/wmbiff/wmbiff.c
+++ b/wmbiff/wmbiff.c
@@ -1,4 +1,4 @@
-/* $Id: wmbiff.c,v 1.21 2002/04/15 01:30:04 bluehal Exp $ */
+/* $Id: wmbiff.c,v 1.22 2002/04/15 01:58:35 bluehal Exp $ */
#ifdef HAVE_CONFIG_H
#include <config.h>
@@ -625,7 +625,7 @@ void parse_mbox_path(int item)
sprintf(buf, "shell:::finger -lm %s | "
"perl -ne '(/^new mail/i && print \"new\");' "
"-e '(/^mail last read/i && print \"old\");' "
- "-e '(/^no( unread)? mail/i && print \"0\");'",
+ "-e '(/^no( unread)? mail/i && print \"no\");'",
mbox[item].path + 7);
shellCreate((&mbox[item]), buf);
} else if (!strncasecmp(mbox[item].path, "licq:", 5)) { /* licq history file */
@@ -738,7 +738,7 @@ void XSleep(int millisec)
void sigchld_handler(int sig __attribute__ ((unused)))
{
- waitpid(0, NULL, WNOHANG);
+ while (waitpid(0, NULL, WNOHANG));
signal(SIGCHLD, sigchld_handler);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbiff.git
More information about the Pkg-wmaker-commits
mailing list