git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
allow specifiying access mode when creating twifs file node
[lunaix-os.git]
/
lunaix-os
/
kernel
/
exe
/
exec.c
diff --git
a/lunaix-os/kernel/exe/exec.c
b/lunaix-os/kernel/exe/exec.c
index 5ac00b3dbb99577bdd7f5a13281b073bdf13bd85..3c1fb42d8c2385b4be5729c45b9fdb91c9d21814 100644
(file)
--- a/
lunaix-os/kernel/exe/exec.c
+++ b/
lunaix-os/kernel/exe/exec.c
@@
-276,14
+276,8
@@
exec_kexecve(const char* filename, const char* argv[], const char* envp[])
return errno;
}
return errno;
}
-__DEFINE_LXSYSCALL3(int,
- execve,
- const char*,
- filename,
- const char*,
- argv[],
- const char*,
- envp[])
+__DEFINE_LXSYSCALL3(int, execve, const char*, filename,
+ const char*, argv[], const char*, envp[])
{
int errno = 0;
int acl;
{
int errno = 0;
int acl;
@@
-326,6
+320,5
@@
done:
// Always yield the process that want execve!
schedule();
// Always yield the process that want execve!
schedule();
- // this will never get executed!
- return -1;
+ unreachable;
}
\ No newline at end of file
}
\ No newline at end of file