OLD | NEW |
1 /* $OpenBSD: kqueue.c,v 1.5 2002/07/10 14:41:31 art Exp $ */ | 1 /* $OpenBSD: kqueue.c,v 1.5 2002/07/10 14:41:31 art Exp $ */ |
2 | 2 |
3 /* | 3 /* |
4 * Copyright 2000-2002 Niels Provos <provos@citi.umich.edu> | 4 * Copyright 2000-2002 Niels Provos <provos@citi.umich.edu> |
5 * All rights reserved. | 5 * All rights reserved. |
6 * | 6 * |
7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
9 * are met: | 9 * are met: |
10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 if (kqop->changes) | 446 if (kqop->changes) |
447 free(kqop->changes); | 447 free(kqop->changes); |
448 if (kqop->events) | 448 if (kqop->events) |
449 free(kqop->events); | 449 free(kqop->events); |
450 if (kqop->kq >= 0 && kqop->pid == getpid()) | 450 if (kqop->kq >= 0 && kqop->pid == getpid()) |
451 close(kqop->kq); | 451 close(kqop->kq); |
452 | 452 |
453 memset(kqop, 0, sizeof(struct kqop)); | 453 memset(kqop, 0, sizeof(struct kqop)); |
454 free(kqop); | 454 free(kqop); |
455 } | 455 } |
OLD | NEW |