[commit] r2142 - clear stored serial port name after successful close

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[commit] r2142 - clear stored serial port name after successful close

commits-3
 
Author: piumarta
Date: 2009-09-18 18:35:25 -0700 (Fri, 18 Sep 2009)
New Revision: 2142

Modified:
   trunk/platforms/unix/ChangeLog
   trunk/platforms/unix/plugins/SerialPlugin/sqUnixSerial.c
Log:
clear stored serial port name after successful close

Modified: trunk/platforms/unix/ChangeLog
===================================================================
--- trunk/platforms/unix/ChangeLog 2009-09-18 20:17:51 UTC (rev 2141)
+++ trunk/platforms/unix/ChangeLog 2009-09-19 01:35:25 UTC (rev 2142)
@@ -1,3 +1,8 @@
+2009-09-18  Ian Piumarta  <com -dot- gmail -at- piumarta (backwards)>
+
+ * plugins/SerialPlugin/sqUnixSerial.c (serialPortCloseByName):
+ Invalidate serial port name after closing.
+
 2009-09-18    <[hidden email]>
 
  * cmake/squeak.in: Resolve symlinks in bindir.  Fix missing

Modified: trunk/platforms/unix/plugins/SerialPlugin/sqUnixSerial.c
===================================================================
--- trunk/platforms/unix/plugins/SerialPlugin/sqUnixSerial.c 2009-09-18 20:17:51 UTC (rev 2141)
+++ trunk/platforms/unix/plugins/SerialPlugin/sqUnixSerial.c 2009-09-19 01:35:25 UTC (rev 2142)
@@ -1,6 +1,6 @@
 /* sqUnixSerial.c -- Unix serial support
  *
- * Last edited: 2009-08-22 14:13:41 by piumarta on ubuntu.piumarta.com
+ * Last edited: 2009-09-18 18:32:58 by piumarta on emilia-2.local
  */
 
 #include "sq.h"
@@ -197,6 +197,8 @@
       return -1;
     }
 
+  sp->spName[0]= '\0';
+
   success(true);
   return 0;
 }