lkml.org 
[lkml]   [1998]   [May]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Bug in set/gethostname.
Date
"A month of sundays ago Michael Elizabeth Chastain wrote:"
>
>
> In my humble opinion, sys_gethostname should acquire the semaphore
> before calling strlen on system_utsname.nodename. That way, gethostname
> 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 ...

Peter ptb@it.uc3m.es


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:42    [W:0.078 / U:0.480 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site