Go to file
Nat Goodspeed 78816bb156 IQA-463: Use APR file I/O for downloaded viewer installer .exe.
On Windows, calling CreateProcess(bInheritHandles=FALSE) is the wrong idea. In
that case, CreateProcess() passes NO handles -- even the files you've
explicitly designated as the child's stdin, stdout, stderr in the STARTUPINFO
struct! Remove LLProcess code to tweak bInheritHandles; we should also remove
the corresponding (useless) APR extension.
Instead, given that the Windows file-locking problem we've observed is
specific to the viewer installer .exe file downloaded by the background
updater logic, use APR file I/O for that specific file. Empirically, both
llofstream and std::ofstream seem to make the open file handle inheritable;
but apr_file_open() documentation says: "By default, the returned file
descriptor will not be inherited by child processes created by
apr_proc_create()." And indeed, it does appear to sidestep the locking problem.
2012-04-23 12:01:15 -04:00
doc merge changes for storm-1799 2012-01-23 14:17:21 -05:00
etc Automated merge up from viewer-development 2011-01-14 14:16:07 -05:00
indra IQA-463: Use APR file I/O for downloaded viewer installer .exe. 2012-04-23 12:01:15 -04:00
scripts fix typo in flag for -u option 2011-10-06 16:30:32 -04:00
.hgignore Adding *.diff to ignored files. 2011-10-19 00:35:18 +01:00
.hgtags Automated merge with http://hg.secondlife.com/viewer-release 2012-03-21 13:03:04 -04:00
BuildParams update build params for oz viewer-trial build 2011-12-19 15:25:39 -05:00
autobuild.xml IQA-463: Make LLProcess call apr_procattr_inherit_set() extension. 2012-04-18 15:43:34 -04:00
build.sh Re-indent teamcity service messages when scanning build logs to fix incredibuild formatting. 2011-07-20 11:48:57 -07:00