index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Xavier Chantry <shiningxc@gmail.com> | 2009-03-15 15:42:35 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2009-03-15 11:40:49 -0500 |
commit | 36863b968f562840461e60be4ed23abf635d6008 (patch) | |
tree | dff86c5d35d856979d7475604c748a3ef2f3b0e8 | |
parent | 687f04ab4699440e3d8b371454b26039b6eb2772 (diff) |
-rw-r--r-- | lib/libalpm/trans.c | 3 |
diff --git a/lib/libalpm/trans.c b/lib/libalpm/trans.c index 4b831193..ae01e3fa 100644 --- a/lib/libalpm/trans.c +++ b/lib/libalpm/trans.c @@ -511,6 +511,9 @@ int _alpm_runscriptlet(const char *root, const char *installfn, } _alpm_log(PM_LOG_DEBUG, "%s\n", cmdline); + /* Flush open fds before fork() to avoid cloning buffers */ + fflush(NULL); + /* fork- parent and child each have seperate code blocks below */ pid = fork(); if(pid == -1) { |