will
2005-09-12 22:08:32 UTC
Hi guys.
The spec says we should add a parameter to Sys_Spawn that indicates whether a process should be run
in the background or not. However, this information is already available in the first parameter that
gets passed in. The documentation for the Sys_Spawn method says
"state->edi == whether to spawn in the background"
Furthermore, the shell doesn't directly call Sys_spawn, but instead calls one of the "Spawn_with" methods,
which in turn call Sys_spawn. Without giving away more than I'm allowed to, shouldn't we be modifying one
of the methods the shell should access? If we actually are supposed to do it as the spec said, isn't it a
bad idea to expose Interrupt_State to the shell process?
This is all in reference to the line in the spec
"modify the Sys_Spawn system call to take an additional argument"
Thanks
-Will
The spec says we should add a parameter to Sys_Spawn that indicates whether a process should be run
in the background or not. However, this information is already available in the first parameter that
gets passed in. The documentation for the Sys_Spawn method says
"state->edi == whether to spawn in the background"
Furthermore, the shell doesn't directly call Sys_spawn, but instead calls one of the "Spawn_with" methods,
which in turn call Sys_spawn. Without giving away more than I'm allowed to, shouldn't we be modifying one
of the methods the shell should access? If we actually are supposed to do it as the spec said, isn't it a
bad idea to expose Interrupt_State to the shell process?
This is all in reference to the line in the spec
"modify the Sys_Spawn system call to take an additional argument"
Thanks
-Will