Microsoft KB Archive/25585

From BetaArchive Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Terminated Child Processes, Interrupt 21h, Function 4Ch PSS ID Number: Q25585 Article last modified on 03-24-1993 PSS database name: O_MSDOS

3.20 4.00 5.00 5.00a 6.00

MS-DOS

The information in this article applies to:
- Microsoft MS-DOS operating system versions 3.x, 4.x, 5.0, and 6.0

Question:

What happens when a parent process loads and executes a child process which in turn loads and executes another child process, and an MS-DOS interrupt 21H, function call 4CH is issued? (All the processes are being loaded through the spawn() function provided with the Microsoft C Compiler with the mode switch set to P_WAIT.)

Response:

When a child process is terminated, control returns to the process that called the child process. For example, Process A calls Process B, which calls Process C. When Process C is terminated by INT 21H function 4CH (or exit()), control returns to Process B.

Additional reference words: 3.20 4.00 5.00 5.00a 6.00

Copyright Microsoft Corporation 1993.