…right…tell that to cmd.exe or the OpenVPN daemon, or the soft ether VPN daemon, or OpenConsole.exe, or Idk, I only tested 4 that immediately came to mind but my point stands. There are a lot of programs that do not have a window handle and do not bother with window messages.
- 0 Posts
- 9 Comments
You clearly didn’t read my message…I said a “window close message.” I.e…WM_CLOSE. that is not a process signal, it’s a window management signal. Hence taskkill not working without /f on headless processes
TIL about the console signaling stuff, good to know. I am aware of SEH but that seemed a little too in the weeds for this discussion since that’s as you say akin to SIGSEGV
Ironically it’s actually the opposite. Linux has signals, and with the exception of SIGKILL and I think SIGABRT they can all be handled gracefully. Windows on the other hand doesn’t have signals, it can only TerminateProcess() which is forceful. The illusion of graceful termination on windows is done by sending a Window close message to all of the windows belonging to a given process, however in the event the process has no windows, only forceful termination is available due to the lack of a real mechanism to gracefully terminate processes. That’s why the taskkill command tells you a process requires forceful termination when you run it against something headless.
Scoopta@programming.devto
Programmer Humor@programming.dev•The Vibe Coding Hero's Journey
2·4 days agoOh yeah… actually I forgot about that configuration too. With or without a clutch
Scoopta@programming.devto
Programmer Humor@programming.dev•The Vibe Coding Hero's Journey
1·4 days agoI had to give this a really good think because I can’t remember the last time I’ve seen a car with a manual transmission so I was fully like
What do you mean? The brake is the left most pedal?
But Linux also has containers and I haven’t found a networking setup I can’t do with it so while this may be true it seems anecdotal
Scoopta@programming.devto
Programmer Humor@programming.dev•Was not able to find programming_horror
2·8 days agoI’m going to just point out that hating all white males is just as backwards as hating all older generations. Hating anyone for stuff like that is stupid period. Not saying you do, it’s just the last sentence feels like you’re trying to appeal to people using the same BS you’re arguing against.
Yep, I’m aware of that too, doesn’t change my initial point