Util-Linux package development
 help / color / mirror / Atom feed
* sulogin usemask
@ 2015-09-30 12:46 Karel Zak
  2016-02-10 15:59 ` Dr. Werner Fink
  0 siblings, 1 reply; 2+ messages in thread
From: Karel Zak @ 2015-09-30 12:46 UTC (permalink / raw)
  To: Werner Fink, util-linux



 Hi,

 https://github.com/systemd/systemd/pull/1399 this discussion
 highlights that the code around 'usemask' is not robust enough.

 The 'volatile' does not mean atomic. 
 
 It would be nice to improve the code -- avoid the mask at all, or use
 pthread_mutex_lock() (note that you can use mmaped shared memory for
 the muttex and share the lock between forked processes, you don't
 have to use threads).

 Comments?

    Karel

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-02-10 16:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-30 12:46 sulogin usemask Karel Zak
2016-02-10 15:59 ` Dr. Werner Fink

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox