/*************************************************************************/ /* * GeekOS master source distribution and/or project solution * Copyright (c) 2001,2003,2004 David H. Hovemeyer * Copyright (c) 2003 Jeffrey K. Hollingsworth * * This file is not distributed under the standard GeekOS license. * Publication or redistribution of this file without permission of * the author(s) is prohibited. */ /*************************************************************************/ /* * A test program for GeekOS user mode */ #include #include #include #include int main(int argc, char** argv) { int pid; Print_String("This program spawns an attached child\n"); pid = Spawn_With_Path("null.exe", "null.exe", "/c:/a", 0); if (pid < 0) Print("Could not spawn process: %s\n", Get_Error_String(pid)); else { int exitCode = Wait(pid); if (exitCode == -1) Print("Parent could not wait on child. NOT OK\n"); } return 1; }