Допустим, я открываю файл с помощью open()
. Затем я fork()
моей программы.
Будут ли папа и ребенок использовать одно и то же смещение для файлового дескриптора?
Я имею в виду, если я сделаю запись в моем отце, смещение также будет изменено у ребенка?
Или смещения будут независимыми после fork()
?