Fix network poll() issue: don't interrupt poll if socket not connected. Listen sockets are not connected and the poll() is waiting for connection events.

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5717 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2013-03-07 17:59:21 +00:00
parent f66f0c3d24
commit 4b3ad32ee5
8 changed files with 147 additions and 38 deletions
+10 -4
View File
@@ -100,16 +100,22 @@ void kfree(FAR void*);
#endif
/* Functions defined in os_list.c *******************************************/
/* Functions defined in sched/sched_free.c **********************************/
/* Handles memory freed from an interrupt handler */
/* Handles memory freed from an interrupt handler. In that context, kfree()
* cannot be called. Instead, the allocations are saved in a list of
* delayed allocations that will be periodically cleaned up by
* sched_garbagecollection().
*/
void sched_free(FAR void *address);
/* Functions defined in os_list.c *******************************************/
/* Functions defined in sched/sched_garbage *********************************/
/* Must be called periodically to clean up deallocations delayed by
* sched_free()
* sched_free(). This may be done from either the IDLE thread or from a
* worker thread. The IDLE thread has very low priority and could starve
* the system for memory in some context.
*/
void sched_garbagecollection(void);