diff options
author | Alexis211 <alexis211@gmail.com> | 2009-10-24 22:58:28 +0200 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2009-10-24 22:58:28 +0200 |
commit | d1ac6fb03e3110e35023f60f643f0c4d02c3d8b6 (patch) | |
tree | b7f693ab8ea9d320f5bd1b838e8eb3d3bcd690f4 /Source/Kernel/Shell | |
parent | b639b99b3e8f4cf77560d8d473b13d992ac8eb10 (diff) | |
download | Melon-d1ac6fb03e3110e35023f60f643f0c4d02c3d8b6.tar.gz Melon-d1ac6fb03e3110e35023f60f643f0c4d02c3d8b6.zip |
More work on syscalls : userland applications can run other apps.
Diffstat (limited to 'Source/Kernel/Shell')
-rw-r--r-- | Source/Kernel/Shell/KernelShell-fs.class.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Kernel/Shell/KernelShell-fs.class.cpp b/Source/Kernel/Shell/KernelShell-fs.class.cpp index bc7e137..fa2078d 100644 --- a/Source/Kernel/Shell/KernelShell-fs.class.cpp +++ b/Source/Kernel/Shell/KernelShell-fs.class.cpp @@ -109,7 +109,8 @@ void KernelShell::run(Vector<String>& args) { if (args.size() == 1) { *m_vt << "No app to run !\n"; } else { - Process* p = Process::run(args[1], m_cwd, 0); + Task::currProcess()->setCwd(m_cwd); + Process* p = Process::run(args[1], 0); if (p == 0) { *m_vt << "Error while launching process.\n"; } else { |