diff options
author | Dan McGee <dan@archlinux.org> | 2008-10-13 04:36:45 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-10-13 04:36:45 +0200 |
commit | fa02a71abd62fc8b45e92ce1652b5d98174a6dca (patch) | |
tree | 44880adf216b6a634e90e76428b265e02df33b58 /lib/libalpm/util.c | |
parent | 91a013a8791b73daf4d17b2d52c8dfaf12887cc6 (diff) | |
parent | 30851a24ff68b00898565a1144926d83c623e6bf (diff) | |
download | pacman-fa02a71abd62fc8b45e92ce1652b5d98174a6dca.tar.gz pacman-fa02a71abd62fc8b45e92ce1652b5d98174a6dca.tar.xz |
Merge branch 'maint'
Diffstat (limited to 'lib/libalpm/util.c')
-rw-r--r-- | lib/libalpm/util.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |