Re: O_NONBLOCK in irmc
Phil Dibowitz <[email protected]> Mon, 02 Aug 2004 21:47:10 -0700
| Newsgroups | gmane.comp.gnome.apps.multisync.devel |
|---|---|
| Message-ID | <[email protected]> |
Armin Bauer wrote: >>This is probably much less than an ideal solution, but hopefully it'll >>help those more familiar with the codebase come up with a cleaner solution. > > > I am not familiar with the irmc plugin, but shouldnt that be writen with > poll/select to check if it is possible to write to the socket? OK, So I've looked more into the code, and it appears there is appropriate polling logic there. I'm doing various debugging things including making the pl2303's buffer size smaller. The only thing so far that has worked is adding a sleep() after the write. If I find the problem, I'll let you know. -- Phil Dibowitz [email protected] Freeware and Technical Pages Insanity Palace of Metallica http://www.phildev.net/ http://www.ipom.com/ "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." - Benjamin Franklin, 1759
signature.asc
(application/pgp-signature, 256 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBDxjRN5XoxaHnMrsRAlhwAJ4x8w+T6RQ96S0hUd+N/4L1qZnWqwCeKp6r iT0sLHq0FT5Yo8iBoL9BLI8= =ItDE -----END PGP SIGNATURE-----