index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2008-09-10 14:29:50 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-10-12 21:28:05 -0500 |
commit | f9be2334f7b01ba30235500cb12d4ed61fff564b (patch) | |
tree | 796b90d94985d8e0ad19f3c05d7f19dd275bc387 /lib/libalpm/util.c | |
parent | 18452a6c51827e91f37978397552c30cb92c26cd (diff) |
-rw-r--r-- | lib/libalpm/util.c | 3 |
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c index b26c9702..da3463b0 100644 --- a/lib/libalpm/util.c +++ b/lib/libalpm/util.c @@ -254,7 +254,8 @@ int _alpm_lckmk() _alpm_makepath(dir); FREE(dir); - fd = open(file, O_WRONLY | O_CREAT | O_EXCL, 0000); + while((fd = open(file, O_WRONLY | O_CREAT | O_EXCL, 0000)) == -1 + && errno == EINTR); return(fd > 0 ? fd : -1); } |