K 10 svn:author V 5 dougb K 8 svn:date V 27 2012-06-23T08:36:49.742285Z K 7 svn:log V 1042 Various fixes to IPC_SAVE: 1. In safe_exit() always zero out the file before writing. This is probably redundant now given the following change, but I'll leave it in to be safe for now. 2. Zero out the file after reading it. The change in r236996 could lead to the parent process reading a stale file under certain circumstances. The combination of things that need to happen for this to occur are complex, but not impossible. 3. Move the writing of $PM_BUILD_ONLY_LIST - related variables into safe_exit(). When originally put in the previous location it saved what could have been a spurious test, but that test was long ago added to safe_exit(). Also, by not writing it there it could be missed in certain circumstances where the exit happened without reaching that code in the main script. This brings all the code that writes to the file into safe_exit() 4. NB_DELETE can only be set while building, so move writing it to that section. When -F, and the port has no distfiles, report that explicitly END