release_on_close.patch 676 B

123456789101112131415161718
  1. Description: Release port on close
  2. Helps with the Python module when an object gets deleted.
  3. Author: Uwe Kleine-König <Uwe.Kleine-Koenig@digi.com>
  4. Bug-Debian: http://bugs.debian.org/461068
  5. Index: libieee1284-0.2.11/src/interface.c
  6. ===================================================================
  7. --- libieee1284-0.2.11.orig/src/interface.c 2003-05-30 16:26:12.000000000 +0200
  8. +++ libieee1284-0.2.11/src/interface.c 2010-05-06 11:24:12.000000000 +0200
  9. @@ -62,6 +62,7 @@
  10. debugprintf (needs_open_port, "ieee1284_close");
  11. return E1284_INVALIDPORT;
  12. }
  13. + ieee1284_release(port);
  14. if (priv->fn->cleanup)
  15. priv->fn->cleanup (priv);
  16. priv->opened = 0;