bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH,HURD][RFC] hurdselect: Step7x, almost complete rewrite finish


From: Samuel Thibault
Subject: Re: [PATCH,HURD][RFC] hurdselect: Step7x, almost complete rewrite finished
Date: Fri, 15 Feb 2013 00:58:11 +0100
User-agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30)

Svante Signell, le Fri 15 Feb 2013 00:37:39 +0100, a écrit :
> > No, it doesn't. There are quite a few ways in which it will break.
> 
> Well (as you say) I'm a newbie C programmer, tell me where the bugs
> are ;-)

As I already said, there are too many than I want to even spend time
describing any.

Be it just

                 if (ispoll)
                   {
                   case EPIPE:

which is obviously bogus without looking at the context. It's sad that
the C compiler can't tell you it does not make sense (I see what sense
you tried to tell the compiler, but sorry that can't work that way).

               if (d[i].io_port == MACH_PORT_NULL)
                 {
                   _hurd_port_free (&d[i].cell->port,

Doesn't make sense either. You haven't understood what the original code
was doing (cleaning the previously allocated ports, not this newly one).

There are other such kind of issues I don't even want to take time to
look out again.

Samuel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]