https://stackoverflow.com/questions/50110992/why-does-forking-my- process-cause-the-file-to-be-read-infinitely/50112169#50112169
This is defined behavior as a race condition ** Changed in: glibc (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1750173 Title: getline doesn't terminate after fork To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1750173/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs