]> gcc.gnu.org Git - gcc.git/commit
Properly reset the port handle when closing
authorPascal Obry <obry@adacore.com>
Thu, 24 Mar 2022 10:30:05 +0000 (11:30 +0100)
committerEric Botcazou <ebotcazou@adacore.com>
Thu, 24 Mar 2022 10:33:40 +0000 (11:33 +0100)
commit4c649dc71189f20ab8ed09b03a7353299f1022c8
treee90633b68949337ebee0060a10846082adbc21ed
parent17f80c57fed1be5a2a3053e4e8fb804b6b0eba54
Properly reset the port handle when closing

When the serial port is closed, we need to ensure that the port handle is
properly reset for it to be detected as closed.

gcc/ada/
PR ada/104767
* libgnat/g-sercom__mingw.adb (Close): Reset port handle to -1.
* libgnat/g-sercom__linux.adb (Close): Likewise.
gcc/ada/libgnat/g-sercom__linux.adb
gcc/ada/libgnat/g-sercom__mingw.adb
This page took 0.063293 seconds and 6 git commands to generate.