Changeset 5591

Show
Ignore:
Timestamp:
07/20/12 14:40:52 (7 years ago)
Author:
nitin
Message:

fixed a small bug in recvfrom_syscall

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • seattle/branches/nacl_repy/seattlelib/lind_net_calls.py

    r5556 r5591  
    460460    filedescriptortable[fd]['remoteport'] = remoteport 
    461461    filedescriptortable[fd]['state'] = CONNECTED 
     462    filedescriptortable[fd]['errno'] = 0 
    462463    # change the state and return success 
    463464    return 0 
     
    659660        if flags & O_NONBLOCK != 0: 
    660661          raise e 
    661         if peek == None: 
     662        if peek == '': 
    662663          sleep(RETRYWAITAMOUNT) 
    663664          continue 
    664665 
    665       if peek == None: 
     666      if peek == '': 
    666667        if (flags & MSG_PEEK) != 0: 
    667668          filedescriptortable[fd]['last_peek'] = data 
     
    969970        filedescriptortable[newfd]['remoteport'] = remoteport 
    970971        filedescriptortable[newfd]['socketobjectid'] = _insert_into_socketobjecttable(acceptedsocket) 
    971         filedescriptortable[newfd]['last_peek'] = None 
     972        filedescriptortable[newfd]['last_peek'] = '' 
    972973 
    973974        return remoteip, remoteport, newfd