diff --git a/capi20/capi20.c b/capi20/capi20.c index 5f05dd7d..bc094bf1 100644 --- a/capi20/capi20.c +++ b/capi20/capi20.c @@ -2,6 +2,12 @@ * $Id$ * * $Log$ + * Revision 1.9 1999/10/20 16:43:17 calle + * - The CAPI20 library is now a shared library. + * - Arguments of function capi20_put_message swapped, to match capi spec. + * - All capi20 related subdirs converted to use automake. + * - Removed dependency to CONFIG_KERNELDIR where not needed. + * * Revision 1.8 1999/09/15 08:10:44 calle * Bugfix: error in 64Bit extention. * @@ -394,3 +400,12 @@ capi20_fileno(unsigned ApplID) return applid2fd(ApplID); } +static void exitlib(void) __attribute__((destructor)); + +static void exitlib(void) +{ + if (capi_fd >= 0) { + close(capi_fd); + capi_fd = -1; + } +}