Re: kern/45733: file descriptor flags and socket flags out of sync

From: Robert Watson (rwatson_at_freebsd.org)
Date: 06/23/04

  • Next message: Bruce M Simpson: "Re: kern/45733: file descriptor flags and socket flags out of sync"
    Date: Tue, 22 Jun 2004 21:04:35 -0400 (EDT)
    To: Bruce M Simpson <bms@spc.org>
    
    

    On Wed, 23 Jun 2004, Bruce M Simpson wrote:

    > On Tue, Jun 22, 2004 at 07:11:19PM -0400, Robert Watson wrote:
    > > so->so_state |= (head->so_state & SS_NBIO);
    >
    > In the end this is what it boils down to. I've committed this and an
    > appropriate manual page update.

    Since you're looking at the propagation of head so_state to new socket
    so_state, you might want to look at the similar statement in sonewconn(),
    which copies so_state from head to the new socket, and adds the SS_NOFDREF
    flag. Should we only be propagating SS_NBIO here as well?

    Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
    robert@fledge.watson.org Senior Research Scientist, McAfee Research

    _______________________________________________
    freebsd-net@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-net
    To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"


  • Next message: Bruce M Simpson: "Re: kern/45733: file descriptor flags and socket flags out of sync"

    Relevant Pages

    • Re: kern/45733: file descriptor flags and socket flags out of sync
      ... > Since you're looking at the propagation of head so_state to new socket ... the socket, so similar inconsistencies between the FD and the SO wouldn't ... The state of the socket 'head' is likely to be consistent with regards to ... the other SS_* flags as 'head' is a listening socket, ...
      (freebsd-net)
    • Re: Freeze.Panes revisited
      ... > They're already talking 'bout it down in the head office. ... > between the DSL modem and the telephone socket shall not be more than ... > SEVEN FEET, if I want a decent signal. ... And, of course, I've gotta get it up and working. ...
      (sci.med.dentistry)
    • Re: incorrect errno/perror with IO::socket->new
      ... b> No I am expecting that Socket->newis making system calls and if ... b> I am left only with an undef $socket. ... b> clean up then saving it and restoring it after all clean up system ... your head and not the module. ...
      (comp.lang.perl.misc)
    • Re: Head bolt sheared -- how to get out
      ... >> I finally got a socket to fit the head bolts on my 1990 2.3 Mustang but ... >I would have used a regular socket on my impact wrench, ... >You can normally take your head to a machine shop and have them ...
      (rec.autos.makers.ford.mustang)
    • Re: Head bolt sheared -- how to get out
      ... > of the bolts sheared. ... I would have used a regular socket on my impact wrench, ... You can normally take your head to a machine shop and have them ...
      (rec.autos.makers.ford.mustang)