1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-12 20:58:37 +03:00

r15887: Ensure we use sys_write so we're not interrupted.

Jeremy.
(This used to be commit c66620770d2154543a6ec99d369771b339df5463)
This commit is contained in:
Jeremy Allison 2006-05-25 15:43:12 +00:00 committed by Gerald (Jerry) Carter
parent 9a38c05154
commit 9f6631b469

View File

@ -241,7 +241,7 @@ static int expect(int master, char *issue, char *expected)
if (lp_passwd_chat_debug())
DEBUG(100, ("expect: sending [%s]\n", issue));
if ((len = write(master, issue, strlen(issue))) != strlen(issue)) {
if ((len = sys_write(master, issue, strlen(issue))) != strlen(issue)) {
DEBUG(2,("expect: (short) write returned %d\n", len ));
return False;
}