[PATCH 1/3] smpp_smsc: Print errno and close socket if read returns -1

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Holger Hans Peter Freyther holger at freyther.de
Sun Jan 26 07:44:53 UTC 2014


On Tue, Jan 21, 2014 at 02:32:57PM +0100, Daniel Willmann wrote:
> I'm not opposed, but I don't see how it would help anything. I doubt
> that whoever forgot to check the function signature will remember to
> compare the length against a define.

Maybe it is time for gerrit or at least a set-up for patchwork. I had
a look at your branch and stopped at the first commit message. :)


"Before this patch we just loop over the fd with read returning -1.."

==> looped (past tense)?


"EINTR is handled to not cause an error and because the socket is not
opened with O_NONBLOCK we don't need to check EAGAIN/EWOULDBLOCK."

I don't think it is true. osmo_fd_register will enable O_NONBLOCK on
the socket and I think we use that to register the fd.


the actual fixes look nice though. :)
    





More information about the OpenBSC mailing list