projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
328c2fe
)
(_nl_load_domain): Deal with EINTR. Include <errno.h>.
author
drepper
<drepper>
Thu, 4 May 2000 01:42:05 +0000
(
01:42
+0000)
committer
drepper
<drepper>
Thu, 4 May 2000 01:42:05 +0000
(
01:42
+0000)
intl/loadmsgcat.c
patch
|
blob
|
history
diff --git
a/intl/loadmsgcat.c
b/intl/loadmsgcat.c
index
75265c8
..
5736116
100644
(file)
--- a/
intl/loadmsgcat.c
+++ b/
intl/loadmsgcat.c
@@
-21,6
+21,7
@@
#endif
#include <ctype.h>
+#include <errno.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
@@
-177,12
+178,15
@@
_nl_load_domain (domain_file)
do
{
long int nb = (long int) read (fd, read_ptr, to_read);
- if (nb
== -1
)
+ if (nb
<= 0
)
{
+#ifdef EINTR
+ if (nb == -1 && errno == EINTR)
+ continue;
+#endif
close (fd);
return;
}
-
read_ptr += nb;
to_read -= nb;
}