FreeBSD Bugzilla – Attachment 157176 Details for
Bug 200468
emulators/virtualbox-ose: hangs when using nmdm as serial device
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Serial device fix
virtualbox.patch (text/plain), 1.46 KB, created by
Jimmy Olgeni
on 2015-05-26 18:38:57 UTC
(
hide
)
Description:
Serial device fix
Filename:
MIME Type:
Creator:
Jimmy Olgeni
Created:
2015-05-26 18:38:57 UTC
Size:
1.46 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 387462) >+++ Makefile (working copy) >@@ -3,6 +3,7 @@ > > PORTNAME= virtualbox-ose > DISTVERSION= 4.3.28 >+PORTREVISION= 1 > CATEGORIES= emulators > MASTER_SITES= http://download.virtualbox.org/virtualbox/${DISTVERSION}/ \ > http://tmp.chruetertee.ch/ \ >Index: files/patch-src_VBox_Devices_Serial_DrvHostSerial.cpp >=================================================================== >--- files/patch-src_VBox_Devices_Serial_DrvHostSerial.cpp (revision 0) >+++ files/patch-src_VBox_Devices_Serial_DrvHostSerial.cpp (working copy) >@@ -0,0 +1,17 @@ >+--- src/VBox/Devices/Serial/DrvHostSerial.cpp.orig 2015-05-26 17:59:08 UTC >++++ src/VBox/Devices/Serial/DrvHostSerial.cpp >+@@ -1198,12 +1198,12 @@ static DECLCALLBACK(int) drvHostSerialCo >+ #else /* !RT_OS_WINDOWS */ >+ >+ uint32_t fOpen = RTFILE_O_READWRITE | RTFILE_O_OPEN | RTFILE_O_DENY_NONE; >+-# ifdef RT_OS_LINUX >++# if defined(RT_OS_LINUX) || defined(RT_OS_FREEBSD) >+ /* This seems to be necessary on some Linux hosts, otherwise we hang here forever. */ >+ fOpen |= RTFILE_O_NON_BLOCK; >+ # endif >+ rc = RTFileOpen(&pThis->hDeviceFile, pThis->pszDevicePath, fOpen); >+-# ifdef RT_OS_LINUX >++# if defined(RT_OS_LINUX) || defined(RT_OS_FREEBSD) >+ /* RTFILE_O_NON_BLOCK not supported? */ >+ if (rc == VERR_INVALID_PARAMETER) >+ rc = RTFileOpen(&pThis->hDeviceFile, pThis->pszDevicePath, fOpen & ~RTFILE_O_NON_BLOCK);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 200468
: 157176