diff options
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/sys/kqueue.2 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libc/sys/kqueue.2 b/lib/libc/sys/kqueue.2 index af60bb396d6a..cad4361f2b3c 100644 --- a/lib/libc/sys/kqueue.2 +++ b/lib/libc/sys/kqueue.2 @@ -773,6 +773,10 @@ main(int argc, char **argv) printf("Something was written in '%s'\en", argv[1]); } } + + /* kqueues are destroyed upon close() */ + (void)close(kq); + (void)close(fd); } .Ed .Sh ERRORS |