Re: s6/s6-rc policy for Gentoo: user session tracking

From: Paul Sopka <psopka_at_sopka.ch>
Date: Sat, 13 Jul 2024 12:22:04 +0200

> These two last points, if you really decide to implement them like that in
> the final version, may require some synchronization, e.g. via file locking.
> It is not impossible (I mean, it is quite unlikely, but especially with
> automated CI systems not impossible *at all*) for two SSH sessions to
> come in practically at once, and I have indeed seen shell startup scripts
> run the same program at the same time.
Good point. If I understood everything correctly, this can be easily
solved by the "flock" command, right?

> It would be... interesting to have one login session write the first line,
> then another session immediately write the second one, and then neither of
> them will find exactly one line in the file 🙂 And same for logout.
Indeed.


Have a nice weekend!

Paul

Received on Sat Jul 13 2024 - 12:22:04 CEST

This archive was generated by hypermail 2.4.0 : Sun Jul 14 2024 - 11:50:32 CEST