Talk:Spawn (computing)
From Wikipedia, the free encyclopedia
| This article is rated C-class on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
Spawn functions are not unique to Windows
Possibly-bogus claims about spawn* in Windows
Spawn (computing) § envp claims that
Under Microsoft Windows, the spawn* functions use
LoadModuleto run the spawned process; and if this fails, an attempt is made to spawn a normal MS-DOS process. If a Windows application is spawned, the instance handle can be obtained usingexec_instancehandleget. It is possible to specify how the spawned program will be shown using the functions_exec_showset,_exec_showget, and_exec_showreset.
First, a quick look at the Universal C Runtime source seems to indicate that the spawn* functions use Boring Old CreateProcess(). I'm not sure why, in effect, reinventing CreateProcess() is something that the spawn* functions would need to do.
Second, what is "a normal MS-DOS process" in 32-bit and 64-bit Windows?
Third, I'm not finding exec_instancehandleget() in any Windows documentation. A Google search for "exec_instancehandleget" (complete with the quotes, to ward off mismatches) found 1) a Wikibooks page, 2) this page, and 3) the process.h page in the Digital Mars C/C++ compiler documentation - https://www.digitalmars.com/rtl/process.html. That page, BTW, says something very similar to the quoted text above.
Is this really just talking about the Digital Mars C run-time library, with the Microsoft C library being different? Guy Harris (talk) 05:37, 14 October 2025 (UTC)

