Comment 1 for bug 1382797

Alex Yurchenko (ayurchen) wrote :

Alexey, the reason posix_spawn() is used to fork SST script is that at that time it seemed to be the only way to spawn a process without creating a full copy of the parent memory image. On dedicated servers where mysqld used more than 50% of RAM and with no swap space, forking SST script used to fail due to memory constraints.

I suppose that the problem with cleaning children arises from the not-entirely-correct usage of posix_spawn() in SST code. Perhaps passing proper flags would have solved it.