svn commit: samba r6991 - in trunk/source/nsswitch: .

vlendec at samba.org vlendec at samba.org
Thu May 26 07:47:34 GMT 2005


Author: vlendec
Date: 2005-05-26 07:47:33 +0000 (Thu, 26 May 2005)
New Revision: 6991

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=6991

Log:
Use signal-safe read and write system calls.

Thanks, Jeremy for looking at my code!

Volker

Modified:
   trunk/source/nsswitch/winbindd.c


Changeset:
Modified: trunk/source/nsswitch/winbindd.c
===================================================================
--- trunk/source/nsswitch/winbindd.c	2005-05-26 04:18:48 UTC (rev 6990)
+++ trunk/source/nsswitch/winbindd.c	2005-05-26 07:47:33 UTC (rev 6991)
@@ -372,8 +372,9 @@
 
 	if (event->flags & EVENT_FD_WRITE) {
 		SMB_ASSERT(flags == EVENT_FD_WRITE);
-		done = write(event->fd, &((char *)event->data)[event->done],
-			     todo);
+		done = sys_write(event->fd,
+				 &((char *)event->data)[event->done],
+				 todo);
 
 		if (done <= 0) {
 			event->flags = 0;
@@ -384,8 +385,8 @@
 
 	if (event->flags & EVENT_FD_READ) {
 		SMB_ASSERT(flags == EVENT_FD_READ);
-		done = read(event->fd, &((char *)event->data)[event->done],
-			    todo);
+		done = sys_read(event->fd, &((char *)event->data)[event->done],
+				todo);
 
 		if (done <= 0) {
 			event->flags = 0;



More information about the samba-cvs mailing list