Killing_Spark

joined 2 years ago
[–] Killing_Spark@feddit.de 7 points 8 months ago

One Thing I've learned is not to trust semi decent historians. They tend to oversimplify things a lot

[–] Killing_Spark@feddit.de 14 points 8 months ago

Apply the ones in a star shape to distribute pressure evenly

[–] Killing_Spark@feddit.de 11 points 8 months ago (6 children)

That's hardly surprising

[–] Killing_Spark@feddit.de 2 points 8 months ago

Not in this specific age group. Overall men are overrepresented, not by 90% but they are, but less so in younger people

[–] Killing_Spark@feddit.de 3 points 8 months ago (1 children)

While I guess that's true and it's often surprising that the AfD is polling that well in the younger cohorts let's not overstate their success. There are also a lot of people in that cohort very vehemently disagreeing with the AfD.

[–] Killing_Spark@feddit.de 17 points 8 months ago (5 children)

That is such a bullshit point. "The youth" doesn't want one homogeneous thing. The youth is just as diverse in opinions as other cohorts, maybe even more so. It is also more likely to be on more radikal Sides of the political spectrum.

[–] Killing_Spark@feddit.de 22 points 8 months ago

This. I'm guessing that police man actually saved trumps life because the attempt had to be carried out in a rush and with at least a mild shock still in the system.

[–] Killing_Spark@feddit.de 15 points 8 months ago

Time to go riding some space sandworms

[–] Killing_Spark@feddit.de 8 points 8 months ago

The problem is that doctors and more broadly care workers have a hard time walking away from their job because, you know, they care for people that they would leave in a worse situation if they left.

[–] Killing_Spark@feddit.de 4 points 8 months ago (1 children)

Make sure it isn't just the Pomeranians. Some Pomeranians are definitely going to be in the mix.

[–] Killing_Spark@feddit.de 2 points 8 months ago

Covetous demon inspiration finally revealed

[–] Killing_Spark@feddit.de 2 points 8 months ago

Oh you can also just give a clear preference to other modes of transportation via traffic rules. Let's say there are traffic lights that only allow bikes to pass more often than they allow cars to pass that's pretty neat

 

The context I came upon this question is dbus filedescriptor passing but the question is valid more broadly. Assume you are implementing some service that is supposed to receive some kind of filedescriptor for client processes. You get a message that is in some kind or another malformed but you have already received the filedescriptor.

What do you do with that fd? Is close()ing it guaranteed to be enough?

The question was sparked by a safety comment on rusts abstraction of a OwnedFd, which will run close() in its destructor and binds you by contract to only create it from a filedescriptor if close is all that is needed for cleanup.

This of course made me worry about the possibility of malicious clients sending special filedescriptors that accumulate some kind of ressource on the server process causing some kind of DOS.

I guess a secondary question is: Do you know any example where calling close() is not enough?

view more: next ›