[sane-devel] sanei_thread: pthread test on linux possible?

Henning Meier-Geinitz henning@meier-geinitz.de
Mon, 12 Jan 2004 19:47:58 +0100


On Mon, Jan 12, 2004 at 07:34:27PM +0100, Oliver Rauch wrote:
> In the umax backend (forked reader process) I used a
> signal handler that catches sigkill and calls 
> sanei_scsi_req_flush_all();
> when the reader_process is killed. I am not sure if this
> is necessary but I think I did not add this just because of fun.
> Any ideas?

Try it and you may hang your SCSI system :-)
At least if you use multiple SCSI request at the same time a call to
sanei_scsi_req_flush_all() is necessary. Bu you can do that from the
main process, too.