svn commit: samba r22833 - in
branches/SAMBA_4_0/source/torture/local: .
tridge at samba.org
tridge at samba.org
Mon May 14 01:01:11 GMT 2007
Author: tridge
Date: 2007-05-14 01:01:05 +0000 (Mon, 14 May 2007)
New Revision: 22833
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22833
Log:
use EVENT_FD_AUTOCLOSE in our event test suite
Modified:
branches/SAMBA_4_0/source/torture/local/event.c
Changeset:
Modified: branches/SAMBA_4_0/source/torture/local/event.c
===================================================================
--- branches/SAMBA_4_0/source/torture/local/event.c 2007-05-14 01:00:06 UTC (rev 22832)
+++ branches/SAMBA_4_0/source/torture/local/event.c 2007-05-14 01:01:05 UTC (rev 22833)
@@ -82,7 +82,7 @@
/* create a pipe */
pipe(fd);
- fde = event_add_fd(ev_ctx, ev_ctx, fd[0], EVENT_FD_READ,
+ fde = event_add_fd(ev_ctx, ev_ctx, fd[0], EVENT_FD_READ|EVENT_FD_AUTOCLOSE,
fde_handler, fd);
event_add_timed(ev_ctx, ev_ctx, timeval_current_ofs(2,0),
@@ -105,7 +105,6 @@
}
talloc_free(fde);
- close(fd[0]);
close(fd[1]);
while (alarm_count < fde_count+1) {
More information about the samba-cvs
mailing list