I think this is the data loss bug

If the cloned process exits too quickly the pipes are destroyed and the program with suffer data loss or other strange behaviours.