831
you are viewing a single comment's thread
view the rest of the comments
[-] viking@infosec.pub 96 points 4 months ago

LOL, some of the comments in the source are gold.

https://github.com/microsoft/MS-DOS/blob/main/v4.0/src/DOS/ABORT.ASM

Note:  We do need to explicitly close FCBs.  Reasons are as follows:  If we
; are running in the no-sharing no-network environment, we are simulating the
; 2.0 world and thus if the user doesn't close the file, that is his problem
; BUT...  the cache remains in a state with garbage that may be reused by the
; next process.  We scan the set and blast the ref counts of the FCBs we own.
;
; If sharing is loaded, then the following call to close process will
; correctly close all FCBs.  We will then need to walk the list AFTER here.
;
; Finally, the following call to NET_Abort will cause an EOP to be sent to all
; known network resources.  These resources are then responsible for cleaning
; up after this process.
;
; Sleazy, eh?~
[-] bane_killgrind@lemmy.ml 17 points 4 months ago

This is what people mean when they say hostile to users damn wow

[-] interdimensionalmeme@lemmy.ml 2 points 4 months ago

I imagine that's already a compatibility thing. If the os closed the file handles at that point but the program was expecting to do that, it might crash.

this post was submitted on 26 Apr 2024
831 points (97.6% liked)

Open Source

30339 readers
2288 users here now

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

founded 5 years ago
MODERATORS