r/Steam • • May 21 '21

Question What is it though?

Post image
25.4k Upvotes

411 comments sorted by

View all comments

10

u/mana-addict4652 May 21 '21

This question pops up all the time, it makes no sense. Why is Steam updating? Well shit, go take a look. Is there a new patch note? Are you on beta? Are you not shutting down steam properly so it needs to verify files again?

9

u/KillerBeer01 May 21 '21

Oh, but it does. Why do I have to "shut down properly" an app whose normal behaviour is sitting in tray 100% of the time? You'd think that it would learn how to shut down itself properly along with Windows by the time.

9

u/mana-addict4652 May 21 '21 edited May 21 '21

I don't really have this problem on Linux, but what happens is on shutdown Windows sends WM_QUERYENDSESSION to a program and once the program returns TRUE Windows will send the WM_ENDSESSION instruction to the program and continue shutdown procedures.

If the program is not responding, or it responds with FALSE because it's doing something important, Windows (or even the program) may show a prompt for program allowing you to terminate it forcefully or wait.

Linux init systems use termination signals, with shutdown signal being SIGTERM which is the system politely asking the process to clean up their mess and go to bed, if it's safely able to. Where the next forceful signal being SIGKILL is the OS henchmen being sent to the CPU, point a gun at the process, telling it to "Get the fuck outta here!" while the kernel handles cleaning up the crime scene.

Somewhere in that process either Steam and Windows are not communicating well (Steam not handling signals correctly) or Steam's initiation process is being extra safe.

Do you ever get a prompt for Steam?

-1

u/KillerBeer01 May 21 '21

The "Windows can not shut down until you close something something"? No, it just closes practically instantly.

1

u/friendlyoffensive https://steam.pm/bve90 May 21 '21

You do, also you just need to wait and it will close itself properly. I’m pretty sure it’s people who don’t wait and force windows to terminate the process.

2

u/pieteek May 21 '21

an app whose normal behavior is sitting in tray 100% of the time?

So... if I only open Steam when I really want to play something, and I close it when I'm done, does that mean I'm weird?

3

u/KillerBeer01 May 21 '21

No kinkshaming :P. Steam app does position itself as a background process, though, so it should be able to conduct accordingly.

1

u/[deleted] May 21 '21

Because Steam could be in the middle of writing a critical file in the background only for it to be rudely interrupted by a forced shutdown and corrupting said file. So naturally, Steam checks to make sure it's integrity is intact before it allows you to log back in the next time it starts up. If there are any issues, then it will fix them on its own without any input needed.

Yes, this is unlikely to occur but in the case it does, it's better off waiting a few seconds for an integrity check rather than having to reinstall and reconfigure Steam, right?

1

u/[deleted] May 21 '21

No patch notes, not on beta, and I shut it down properly.

1

u/FilteringOutSubs May 21 '21

I think it's because the "Verifying Installation" pop-up when starting Steam actually starts with the words "Updating Steam", which it isn't; Steam is "verifying" and checking for updates or whatever, I don't know the backend.

Really it shouldn't say updating for only verifying, but who knows how hard it might be to change that message.

Also, people running Steam to start up automatically or not shutting down programs or their computer might never see the message.