Synchronize processes output to lines