summaryrefslogtreecommitdiff
path: root/lib/libc/gen/popen.c
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2009-05-27 19:28:04 +0000
committerEd Schouten <ed@FreeBSD.org>2009-05-27 19:28:04 +0000
commit3d98b75bac19d94dcb60fc3fb910e491012e674d (patch)
tree6d3ce9791e7680277093a1a296bcbea3aaeb6040 /lib/libc/gen/popen.c
parentfa64b9442bf53d69b4d8a99e1b6f122b50207261 (diff)
Notes
Diffstat (limited to 'lib/libc/gen/popen.c')
-rw-r--r--lib/libc/gen/popen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/gen/popen.c b/lib/libc/gen/popen.c
index f3450b5e1cc4..b123234837ee 100644
--- a/lib/libc/gen/popen.c
+++ b/lib/libc/gen/popen.c
@@ -191,7 +191,7 @@ pclose(iop)
if (last == NULL)
SLIST_REMOVE_HEAD(&pidlist, next);
else
- SLIST_REMOVE_NEXT(&pidlist, last, next);
+ SLIST_REMOVE_AFTER(last, next);
THREAD_UNLOCK();
(void)fclose(iop);