diff options
| author | Ed Schouten <ed@FreeBSD.org> | 2009-05-27 19:28:04 +0000 |
|---|---|---|
| committer | Ed Schouten <ed@FreeBSD.org> | 2009-05-27 19:28:04 +0000 |
| commit | 3d98b75bac19d94dcb60fc3fb910e491012e674d (patch) | |
| tree | 6d3ce9791e7680277093a1a296bcbea3aaeb6040 /lib/libc/gen/popen.c | |
| parent | fa64b9442bf53d69b4d8a99e1b6f122b50207261 (diff) | |
Notes
Diffstat (limited to 'lib/libc/gen/popen.c')
| -rw-r--r-- | lib/libc/gen/popen.c | 2 |
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); |
