Should help a little to interrupt command completion reply wait...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5268 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -42,9 +42,14 @@ R5KernelAddon net_stack_driver : kernel drivers bin :
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Installation
|
# Installation
|
||||||
OBOSInstall install-networking : /boot/home/config/add-ons/kernel/drivers/bin
|
|
||||||
: net_server_driver net_stack_driver ;
|
OBOSInstall install-networking : /boot/home/config/add-ons/kernel/drivers/bin :
|
||||||
OBOSInstallRelSymLink install-networking
|
net_server_driver
|
||||||
: /boot/home/config/add-ons/kernel/drivers/dev/net
|
net_stack_driver
|
||||||
: <installed>net_server_driver <installed>net_stack_driver
|
;
|
||||||
: installed-symlink ;
|
|
||||||
|
OBOSInstallRelSymLink install-networking : /boot/home/config/add-ons/kernel/drivers/dev/net :
|
||||||
|
<installed>net_server_driver
|
||||||
|
<installed>net_stack_driver :
|
||||||
|
installed-symlink
|
||||||
|
;
|
||||||
|
|||||||
@@ -726,7 +726,7 @@ execute_command(net_server_cookie *nsc, uint32 op, void *data, uint32 length)
|
|||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
// wait until we get the results back from our command
|
// wait until we get the results back from our command
|
||||||
if ((status = acquire_sem(nsc->command_sem)) == B_OK) {
|
if ((status = acquire_sem_etc(nsc->command_sem, 1, B_CAN_INTERRUPT, 0)) == B_OK) {
|
||||||
if (command->op != 0) {
|
if (command->op != 0) {
|
||||||
if (--max_tries <= 0) {
|
if (--max_tries <= 0) {
|
||||||
FATAL(("command is not freed after 200 tries!\n"));
|
FATAL(("command is not freed after 200 tries!\n"));
|
||||||
|
|||||||
Reference in New Issue
Block a user