mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-06 09:51:35 +08:00
Fix a deadlock when using the NSH ifconfig command over Telnet
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4487 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
/****************************************************************************
|
||||
* net/uip/uip_lock.c
|
||||
*
|
||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
* Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
@@ -173,7 +173,7 @@ void uip_unlock(uip_lock_t flags)
|
||||
* Function: uip_lockedwait
|
||||
*
|
||||
* Description:
|
||||
* Atomically wait for sem while temporarilty releasing.
|
||||
* Atomically wait for sem while temporarily releasing g_uipsem.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
@@ -195,7 +195,7 @@ int uip_lockedwait(sem_t *sem)
|
||||
g_count = 0;
|
||||
sem_post(&g_uipsem);
|
||||
|
||||
/* Now take semaphore */
|
||||
/* Now take the semaphore */
|
||||
|
||||
ret = sem_wait(sem);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user