This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: help in tcp/ip stack !!!


wangwei wrote:
> 
> Thanks ! Jonathan
> I got the bug !
> In file io/fileio/src/socket.cxx , line 720,cyg_file_lock() must be modify
> to cyg_file_unlock().
> ----------------------------------------------------------------------------
> ----------
> static void cyg_sock_unlock( cyg_file *fp )
> {
>     cyg_nstab_entry *ns = (cyg_nstab_entry *)fp->f_mte;
> 
>     if( fp->f_syncmode & CYG_SYNCMODE_SOCK_NETSTACK )
>         nstab_lock[ns-&nstab[0]].unlock();
> 
>     cyg_file_lock( fp, fp->f_syncmode>>CYG_SYNCMODE_SOCK_SHIFT);
> }
> ----------------------------------------------------------------------------
> ----------
> 
> I'sure this bug make my system dump .
> Do you think so ?

It certainly looks like a bug. I'll fix our sources. Thanks for spotting
and reporting this!

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
Come to the Red Hat TechWorld open source conference in Brussels!
Keynotes, techie talks and exhibitions    http://www.redhat-techworld.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]