[maemo-commits] [maemo-commits] r11876 - projects/connectivity/osso-gwobex/trunk/src
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Sun May 27 03:47:39 EEST 2007
- Previous message: [maemo-commits] r11875 - in projects/haf/trunk/hildon-desktop: . data libhildondesktop
- Next message: [maemo-commits] r11877 - projects/connectivity/osso-gwobex/trunk/src
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: jh
Date: 2007-05-27 03:47:37 +0300 (Sun, 27 May 2007)
New Revision: 11876
Modified:
projects/connectivity/osso-gwobex/trunk/src/obex-priv.c
Log:
Fix write return checks
Modified: projects/connectivity/osso-gwobex/trunk/src/obex-priv.c
===================================================================
--- projects/connectivity/osso-gwobex/trunk/src/obex-priv.c 2007-05-25 16:17:36 UTC (rev 11875)
+++ projects/connectivity/osso-gwobex/trunk/src/obex-priv.c 2007-05-27 00:47:37 UTC (rev 11876)
@@ -386,8 +386,11 @@
while (written < actual) {
int ret;
- ret = write(xfer->stream_fd, buf, actual);
- if (ret < 0 && errno != EINTR) {
+ ret = write(xfer->stream_fd, buf, actual - written);
+ if (ret < 0 && errno == EINTR)
+ continue;
+
+ if (ret < 0) {
debug("Could not write: %s (%d)", g_strerror(errno), errno);
break;
}
- Previous message: [maemo-commits] r11875 - in projects/haf/trunk/hildon-desktop: . data libhildondesktop
- Next message: [maemo-commits] r11877 - projects/connectivity/osso-gwobex/trunk/src
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
