Fixed race condition between saned sending NET_OPEN reply

and net.c flushing the wire. New version: 1.0.6.
Henning Meier-Geinitz <henning@meier-geinitz.de>
DEVEL_2_0_BRANCH-1
Henning Geinitz 2002-01-05 11:35:22 +00:00
rodzic 2e6cf0663e
commit 755902d1cd
2 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -42,7 +42,7 @@
/* Please increase version number with every change /* Please increase version number with every change
(don't forget to update net.desc) */ (don't forget to update net.desc) */
#define NET_VERSION "1.0.5" #define NET_VERSION "1.0.6"
#ifdef _AIX #ifdef _AIX
# include "../include/lalloca.h" /* MUST come first for AIX! */ # include "../include/lalloca.h" /* MUST come first for AIX! */
@ -800,11 +800,11 @@ sane_open (SANE_String_Const full_name, SANE_Handle * meta_handle)
sanei_w_free (&dev->wire, (WireCodecFunc) sanei_w_open_reply, sanei_w_free (&dev->wire, (WireCodecFunc) sanei_w_open_reply,
&reply); &reply);
sanei_w_set_dir (&dev->wire, WIRE_DECODE); if (dev->wire.direction != WIRE_DECODE)
sanei_w_set_dir (&dev->wire, WIRE_DECODE);
sanei_w_open_reply (&dev->wire, &reply); sanei_w_open_reply (&dev->wire, &reply);
continue; continue;
} }
else else
sanei_w_free (&dev->wire, (WireCodecFunc) sanei_w_open_reply, &reply); sanei_w_free (&dev->wire, (WireCodecFunc) sanei_w_open_reply, &reply);

Wyświetl plik

@ -1,5 +1,5 @@
:backend "net" ; name of backend :backend "net" ; name of backend
:version "1.0.5" :version "1.0.6"
:status :beta :status :beta
:manpage "sane-net" :manpage "sane-net"
:url "http://home.nexgo.de/jochen.eisinger/saned/" :url "http://home.nexgo.de/jochen.eisinger/saned/"