index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2014-01-02 12:37:12 -0600 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2014-01-06 14:38:50 +1000 |
commit | 086bbc5b623d08df9ffe595bd5ee965e668a4ae1 (patch) | |
tree | 894ba4ccad5f33bb497329c1c75a8200b9109b09 /lib/libalpm/handle.c | |
parent | 8bec8a3f6a09155827aa8c3287f6d814c6912717 (diff) |
-rw-r--r-- | lib/libalpm/handle.c | 2 |
diff --git a/lib/libalpm/handle.c b/lib/libalpm/handle.c index 9f5a9455..44457e6f 100644 --- a/lib/libalpm/handle.c +++ b/lib/libalpm/handle.c @@ -110,7 +110,7 @@ int _alpm_handle_lock(alpm_handle_t *handle) FREE(dir); do { - handle->lockfd = open(handle->lockfile, O_WRONLY | O_CREAT | O_EXCL, 0000); + handle->lockfd = open(handle->lockfile, O_WRONLY | O_CREAT | O_EXCL | O_CLOEXEC, 0000); } while(handle->lockfd == -1 && errno == EINTR); return (handle->lockfd >= 0 ? 0 : -1); |