GNU/Linux >> Belajar Linux >  >> Linux

Apakah deskriptor file dibagikan saat melakukan fork()?

Dari fork(2) :

  *  The child inherits copies of the parent’s set of open file  descrip-
     tors.   Each  file  descriptor  in the child refers to the same open
     file description (see open(2)) as the corresponding file  descriptor
     in  the parent.  This means that the two descriptors share open file
     status flags, current file offset, and signal-driven I/O  attributes
     (see the description of F_SETOWN and F_SETSIG in fcntl(2)).

Mereka berbagi offset yang sama.


Linux
  1. Cegah pewarisan deskriptor file selama fork Linux

  2. Utas dan deskriptor file

  3. mkdir -p gagal saat direktori ada

  1. Deskriptor File &Skrip Shell?

  2. Kapan File Dibuat?

  3. Script Untuk Menentukan Apakah File Adalah Gambar?

  1. Apa itu file jarang di Linux

  2. Untuk apa file .la libtool?

  3. Mengecualikan direktori saat membuat file .tar.gz