--- rpl/src/instructions_s6.c 2017/01/18 15:44:22 1.60 +++ rpl/src/instructions_s6.c 2017/06/21 13:06:23 1.62 @@ -509,6 +509,18 @@ instruction_sync(struct_processus *s_eta d_ex_erreur_acces_fichier; return; } + + if (fsync(fileno((*descripteur).descripteur_c)) != 0) + { + if ((errno != EROFS) && (errno != EINVAL)) + { + liberation(s_etat_processus, s_objet_argument); + + (*s_etat_processus).erreur_execution = + d_ex_erreur_acces_fichier; + return; + } + } } else {