[5720] in linux-scsi channel archive
Does generic SCSI driver need signal blocking?
daemon@ATHENA.MIT.EDU (Alan Siggia)
Wed Jan 27 17:27:03 1999
Date: Wed, 27 Jan 1999 16:37:04 -0500 (EST)
From: Alan Siggia <alan@sigmet.com>
To: linux-scsi@vger.rutgers.edu
Hello,
We are writing some application code for a custom SCSI device, using
the generic SCSI driver (sg.h). The "scsi-programming-howto" mentions
that it may be a good idea to block SIGINT inbetween the "indivisible"
write() and read() that define each generic operation.
Is it still necessary to do this in the kernel used by RedHat 5.2? I
experimented with breaking the write/read sequence manually, and did
not observe anything bad to happen.
Also, merely blocking SIGINT would hardly seem adaquate protection if
any kind of broken write/read sequence really was going to be fatal to
the kernel.
Thanks,
-alan
--
Alan Siggia (alan@sigmet.com) SIGMET Incorporated
Tel: (978) 692-9293 x16 2 Park Drive, Unit #1
FAX: (978) 692-9575 Westford, Massachusetts 01886
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.rutgers.edu