version 1.5, 2010/03/04 17:42:46
|
version 1.8, 2010/04/07 13:45:09
|
Line 1
|
Line 1
|
/* |
/* |
================================================================================ |
================================================================================ |
RPL/2 (R) version 4.0.12 |
RPL/2 (R) version 4.0.14 |
Copyright (C) 1989-2010 Dr. BERTRAND Joël |
Copyright (C) 1989-2010 Dr. BERTRAND Joël |
|
|
This file is part of RPL/2. |
This file is part of RPL/2. |
Line 1077 instruction_uchol(struct_processus *s_et
|
Line 1077 instruction_uchol(struct_processus *s_et
|
void |
void |
instruction_unlock(struct_processus *s_etat_processus) |
instruction_unlock(struct_processus *s_etat_processus) |
{ |
{ |
file *descripteur; |
|
|
|
struct flock lock; |
struct flock lock; |
|
|
|
struct_descripteur_fichier *descripteur; |
|
|
struct_objet *s_objet; |
struct_objet *s_objet; |
|
|
(*s_etat_processus).erreur_execution = d_ex; |
(*s_etat_processus).erreur_execution = d_ex; |
Line 1137 instruction_unlock(struct_processus *s_e
|
Line 1137 instruction_unlock(struct_processus *s_e
|
return; |
return; |
} |
} |
|
|
if (fcntl(fileno(descripteur), F_SETLK, &lock) == -1) |
if (fcntl(fileno((*descripteur).descripteur_c), F_SETLK, &lock) |
|
== -1) |
{ |
{ |
liberation(s_etat_processus, s_objet); |
liberation(s_etat_processus, s_objet); |
|
|