Re: [PATCH] Fix a core dump with AT2 SMSC and lost network connections in rawtcp mode

Stipe Tolj <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization Kannel Software Foundation (KSF)
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ben Suffolk wrote:

> Cheers,
> 
> Sorry about the diff not diff -u, I thought it looked a bit different 
> than when I normally create diffs, must have been a bad day :-)
> 
> I did think about read() being able to return 0, but in theory it  never
> should since we have done a select() just above it. It thats  returns to
> say that there is data read to read then in my book if it  does not read
> it something is wrong.

yeah, but POSIX.1 defines the states and return values isolated from various
calls. And if they say all except -1 is considered a "good return value", we
gonna believe :))

Stipe

- -------------------------------------------------------------------
Kölner Landstrasse 419
40589 Düsseldorf, NRW, Germany

tolj.org system architecture      Kannel Software Foundation (KSF)
http://www.tolj.org/              http://www.kannel.org/

mailto:st_{at}_tolj.org           mailto:stolj_{at}_kannel.org
- -------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGUXpr9ez0oeKvYs0RAjKMAKCmZmmT1//KOdfR2Ldx9FnGVosm0gCg10Ff
QPW8a6wta7Iso0sCYeu2p5s=
=jj2Q
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.