[lkml]   [1998]   [May]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Bug in set/gethostname.
    "A month of sundays ago Peter T. Breuer wrote:"
    > "A month of sundays ago Michael Elizabeth Chastain wrote:"
    > > will return either the old name or the new name, but not some mongrel
    > > mixture of the two.
    > You don't need to acquire a semaphore on read, do you? Surely only on
    > write? It doesn't matter if two people read the same data
    > simultaneously, so long as no two people write it simultaneously ...

    Gah. wups. Yes, of course you need a n readers/1 writer guarantee.
    A semaphore for both reading and writing does that, even if it is too
    tight a restriction.


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to

     \ /
      Last update: 2005-03-22 13:42    [W:0.035 / U:9.828 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site