2007-10-13 Miguel de Icaza <miguel@novell.com>
authorMiguel de Icaza <miguel@gnome.org>
Sun, 14 Oct 2007 03:13:12 +0000 (03:13 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Sun, 14 Oct 2007 03:13:12 +0000 (03:13 -0000)
* SerialPortStream.cs: Send a break on the Unix case.

svn path=/trunk/mcs/; revision=87453

mcs/class/System/System.IO.Ports/ChangeLog
mcs/class/System/System.IO.Ports/SerialPortStream.cs

index 7df77db879a820badd9f237faee824825d4f7df4..8f28ef2dff71a799ab380b1912330ac2caeef74a 100644 (file)
@@ -1,3 +1,7 @@
+2007-10-13  Miguel de Icaza  <miguel@novell.com>
+
+       * SerialPortStream.cs: Send a break on the Unix case.
+
 2007-08-12  Lukasz Byczynski <lukaszb@forcom.com.pl>
 
        * SerialPortStream.cs: added timeout handling on write
index e65f17cb3fee85aeffc340baace235a1066df838..51c825da379701d285b4b1a564423c0e74fcdfd7 100644 (file)
@@ -279,9 +279,13 @@ namespace System.IO.Ports
                                throw new IOException ();
                }
 
+               [DllImport ("MonoPosixHelper")]
+               static extern int breakprop (int fd);
+
                public void SetBreakState (bool value)
                {
-                       throw new NotImplementedException ();
+                       if (value)
+                               breakprop (fd);
                }
 
        }