Talk:Spawn (computing)
| 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
[edit]Microsoft Windows OSs are not the only ones that provide an spawn function in order to launch new processes, i.e.: OpenVMS, OS/400
- I removed the comment that 'the rest of this article is about the Microsoft Windows spawn functions' and changed heading levels to collect the Windows parts under an L2 heading so we can add other L2 headings for different OSes. RJFJR (talk) 13:10, 13 August 2011 (UTC)
Possibly-bogus claims about spawn* in Windows
[edit]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)
- C-Class Computing articles
- Low-importance Computing articles
- C-Class software articles
- Low-importance software articles
- C-Class software articles of Low-importance
- All Software articles
- All Computing articles
- C-Class Linux articles
- Low-importance Linux articles
- WikiProject Linux articles
- C-Class Microsoft Windows articles
- Low-importance Microsoft Windows articles
- Unknown-importance Computing articles
- WikiProject Microsoft Windows articles

