[Cbe-oss-dev] [PATCH] libspe2: fix spe_signal_write
Kazunori Asayama
asayama at sm.sony.co.jp
Thu Nov 16 12:58:53 EST 2006
Attached is a patch to fix the following bug in libspe2:
- spe_signal_write is failed if called twice or more times.
(FD_SIG* should be closed in spe_context_destroy just once.)
--
(ASAYAMA Kazunori
(asayama at sm.sony.co.jp))
t
-------------- next part --------------
Index: libspe2/spebase/mbox.c
===================================================================
--- libspe2.orig/spebase/mbox.c
+++ libspe2/spebase/mbox.c
@@ -132,11 +132,6 @@ int _base_spe_out_intr_mbox_read(spe_con
if (rc == 4)
rc = 0;
- if (signal_reg == SPE_SIG_NOTIFY_REG_1)
- close_if_open(spectx,FD_SIG1);
- else if (signal_reg == SPE_SIG_NOTIFY_REG_2)
- close_if_open(spectx,FD_SIG2);
-
return rc;
}
More information about the cbe-oss-dev
mailing list