4 ms·
Yeah I believe Rust is also much less forgiving to mistakes than C is, which makes it a bit less beginner friendly, but do we really want to allow badly written
by kaba0 6y ago
Yeah I believe Rust is also much less forgiving to mistakes than C is, which makes it a bit less beginner friendly, but do we really want to allow badly written things to run?
Also, are you sure it is a race condition? Some other errors can also appear as races. What service are you trying to create?
- welterde 6y agoNot sure your analogy really works here, since languages like Haskell, Rust, etc. will tell you at compile-time that you have made some mistake. That's not how systemd (or any init system) works though. Things break at runtime. It sure would be nice to have a system that could tell me stuff won't work before running it, but that's just not possible. And my problem is the very definition of a race-conditions. It doesn't always occur and if I play with the timing a bit I can make it go away. The dependency unit is a oneshot script that adds some ip addresses to interfaces. The dependent job tries to bind to one of those ip addresses. And yes the interface is up before this all happens.