version 1.51, 2012/04/12 09:56:40
|
version 1.54, 2012/06/18 15:15:31
|
Line 1
|
Line 1
|
/* |
/* |
================================================================================ |
================================================================================ |
RPL/2 (R) version 4.1.7 |
RPL/2 (R) version 4.1.9 |
Copyright (C) 1989-2012 Dr. BERTRAND Joël |
Copyright (C) 1989-2012 Dr. BERTRAND Joël |
|
|
This file is part of RPL/2. |
This file is part of RPL/2. |
Line 874 instruction_read(struct_processus *s_eta
|
Line 874 instruction_read(struct_processus *s_eta
|
|
|
struct flock lock; |
struct flock lock; |
|
|
|
struct pollfd poll_fd; |
|
|
struct sockaddr_un adresse_unix; |
struct sockaddr_un adresse_unix; |
struct sockaddr_in adresse_ipv4; |
struct sockaddr_in adresse_ipv4; |
# ifdef IPV6 |
# ifdef IPV6 |
Line 2264 printf("L=%d\n", longueur_enregistrement
|
Line 2266 printf("L=%d\n", longueur_enregistrement
|
tampon_lecture, longueur_questure, |
tampon_lecture, longueur_questure, |
MSG_PEEK | MSG_DONTWAIT, (struct sockaddr *) |
MSG_PEEK | MSG_DONTWAIT, (struct sockaddr *) |
&adresse_ipv6, &longueur_adresse); |
&adresse_ipv6, &longueur_adresse); |
|
|
# else |
# else |
if ((*s_etat_processus).langue == 'F') |
if ((*s_etat_processus).langue == 'F') |
{ |
{ |
Line 2417 printf("L=%d\n", longueur_enregistrement
|
Line 2418 printf("L=%d\n", longueur_enregistrement
|
{ |
{ |
if (longueur_effective < longueur_questure) |
if (longueur_effective < longueur_questure) |
{ |
{ |
|
poll_fd.fd = (*((struct_socket *) |
|
(*s_objet_argument_1).objet)).socket; |
|
poll_fd.events = POLLIN; |
|
|
|
if (poll(&poll_fd, 1, 0) > 0) |
|
{ |
|
free(tampon_lecture); |
|
continue; |
|
} |
|
|
liberation(s_etat_processus, s_objet_argument_1); |
liberation(s_etat_processus, s_objet_argument_1); |
free(tampon_lecture); |
free(tampon_lecture); |
|
|