diff options
author | Miguel de Icaza <miguel@gnome.org> | 2007-10-14 07:13:12 +0400 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2007-10-14 07:13:12 +0400 |
commit | 7333a80394b2c7d4b5a48380851b48ee6b06083a (patch) | |
tree | 2dacc7e09b22951cf51cca3129967c0ca73b565f /mcs/class/System/System.IO.Ports/SerialPortStream.cs | |
parent | f7025fccc075847f1dc5eb62db23312c7cf8374b (diff) |
2007-10-13 Miguel de Icaza <miguel@novell.com>
* SerialPortStream.cs: Send a break on the Unix case.
svn path=/trunk/mcs/; revision=87453
Diffstat (limited to 'mcs/class/System/System.IO.Ports/SerialPortStream.cs')
-rw-r--r-- | mcs/class/System/System.IO.Ports/SerialPortStream.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mcs/class/System/System.IO.Ports/SerialPortStream.cs b/mcs/class/System/System.IO.Ports/SerialPortStream.cs index e65f17cb3fe..51c825da379 100644 --- a/mcs/class/System/System.IO.Ports/SerialPortStream.cs +++ b/mcs/class/System/System.IO.Ports/SerialPortStream.cs @@ -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); } } |