etc: Enable a tty for a serial port by default.
[dragora.git] / patches / libieee1284 / release_on_close.patch
blob24433e435f8013560c22a19359c8cd7f7619a9b1
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
6 Index: libieee1284-0.2.11/src/interface.c
7 ===================================================================
8 --- libieee1284-0.2.11.orig/src/interface.c 2003-05-30 16:26:12.000000000 +0200
9 +++ libieee1284-0.2.11/src/interface.c 2010-05-06 11:24:12.000000000 +0200
10 @@ -62,6 +62,7 @@
11 debugprintf (needs_open_port, "ieee1284_close");
12 return E1284_INVALIDPORT;
14 + ieee1284_release(port);
15 if (priv->fn->cleanup)
16 priv->fn->cleanup (priv);
17 priv->opened = 0;