Hi, On Wed, Dec 18, 2002 at 04:42:46PM +0100, abel deuring wrote: > Theoretically, it could be possible to replace the fork call with > somethink like "sane_fork".
There is already a sanei_thread.h which solves fork problems for OS/2. > For sane (i.e., non-darwin) operating > systems, this function would just call fork; for Macos, sane_fork could > additionally duplicate/reopen all necessary, hmmm, "non-filedescriptors" > which are required by the child process to access the scanner. The > necessary information could be collected by sanei_scsi_open or > sanei_usb_open. Nice idea. But sanei_usb doesn't know anything about MacOS. It just uses libusb. So if there is no libusb_regain_access(), I don't think we can do anything here. Bye, Henning
