From 027974f175a3b90597723dda937b3f02a17d8aa9 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Tue, 19 Mar 2013 00:44:04 +0000 Subject: dont need to event_add the parent to child writing events twice. especially if something stops you from having something to write after the first event_add but before the second one. thank you to Henri Kemppainen for the find. --- usr.sbin/identd/identd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'usr.sbin/identd/identd.c') diff --git a/usr.sbin/identd/identd.c b/usr.sbin/identd/identd.c index d51d0c67a3e..122780634f7 100644 --- a/usr.sbin/identd/identd.c +++ b/usr.sbin/identd/identd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: identd.c,v 1.5 2013/03/18 04:53:23 dlg Exp $ */ +/* $OpenBSD: identd.c,v 1.6 2013/03/19 00:44:03 dlg Exp $ */ /* * Copyright (c) 2013 David Gwynne @@ -355,8 +355,6 @@ parent_rd(int fd, short events, void *arg) lerrx(1, "unexpected %zd data from child", n); } - event_add(&proc_wr, NULL); - r = calloc(1, sizeof(*r)); if (r == NULL) lerr(1, "resolver alloc"); -- cgit v1.2.3