"Magnus Hagander" <mha(at)sollentuna(dot)net> writes:
> I was also hoping to piggyback the socket fix on top of this
> infrastructure. And that *requires* the write-files-after-createprocess
> method. There is no other way.
Oh, I had forgotten about that part of the problem. Okay, just gotta
hold our noses and do it I guess.
(Just to be clear: the plan is CreateProcess in suspended state, then
write_backend_variables, then start the child's thread, right?
Otherwise seems you got a race condition.)
regards, tom lane