projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updates README, INSTALL, and docs/MACHINES
[mmh]
/
uip
/
dropsbr.c
diff --git
a/uip/dropsbr.c
b/uip/dropsbr.c
index
124e5ab
..
45451f8
100644
(file)
--- a/
uip/dropsbr.c
+++ b/
uip/dropsbr.c
@@
-6,14
+6,15
@@
** complete copyright information.
*/
** complete copyright information.
*/
-#include <h/nmh.h>
-#include <h/utils.h>
-
#include <h/mh.h>
#include <h/mh.h>
+#include <h/utils.h>
#include <h/dropsbr.h>
#include <h/tws.h>
#include <errno.h>
#include <fcntl.h>
#include <h/dropsbr.h>
#include <h/tws.h>
#include <errno.h>
#include <fcntl.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <sys/stat.h>
/*
/*
@@
-43,8
+44,8
@@
mbox_open(char *file, uid_t uid, gid_t gid, mode_t mode)
#endif
case ETXTBSY:
i = errno;
#endif
case ETXTBSY:
i = errno;
- sleep(5);
- break;
+ sleep(1);
+ continue;
default:
/* just return error */
default:
/* just return error */
@@
-169,7
+170,7
@@
mbox_copy(int to, int from)
if (i != 0 && strncmp(buffer, "From ", 5) == 0) {
write(to, ">", 1);
}
if (i != 0 && strncmp(buffer, "From ", 5) == 0) {
write(to, ">", 1);
}
- if (write(to, buffer, strlen(buffer)) != strlen(buffer)) {
+ if (write(to, buffer, strlen(buffer)) != (int)strlen(buffer)) {
fclose(fp);
return NOTOK;
}
fclose(fp);
return NOTOK;
}