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
feat: implement rmdir(2), unlink(2), unlinkat(2)
[lunaix-os.git]
/
lunaix-os
/
kernel
/
process.c
diff --git
a/lunaix-os/kernel/process.c
b/lunaix-os/kernel/process.c
index a783efe13987a6a2b1c46fd932d67b863314b594..a9baaadd20aafac221136b9133662652190f3c21 100644
(file)
--- a/
lunaix-os/kernel/process.c
+++ b/
lunaix-os/kernel/process.c
@@
-114,7
+114,7
@@
__DEFINE_LXSYSCALL2(int, setpgid, pid_t, pid, pid_t, pgid)
struct proc_info* proc = pid ? get_process(pid) : __current;
if (!proc) {
struct proc_info* proc = pid ? get_process(pid) : __current;
if (!proc) {
- __current->k_status =
LXINV
L;
+ __current->k_status =
EINVA
L;
return -1;
}
return -1;
}
@@
-123,7
+123,7
@@
__DEFINE_LXSYSCALL2(int, setpgid, pid_t, pid, pid_t, pgid)
struct proc_info* gruppenfuhrer = get_process(pgid);
if (!gruppenfuhrer || proc->pgid == proc->pid) {
struct proc_info* gruppenfuhrer = get_process(pgid);
if (!gruppenfuhrer || proc->pgid == proc->pid) {
- __current->k_status =
LXINV
L;
+ __current->k_status =
EINVA
L;
return -1;
}
return -1;
}