aboutsummaryrefslogtreecommitdiff
path: root/kernel/features/syscall.c
diff options
context:
space:
mode:
authorMarvin Borner2020-11-20 19:15:21 +0100
committerMarvin Borner2020-11-20 19:15:21 +0100
commit38e0d413e38838979978d6ff3fdbaf577a916fd0 (patch)
treeee2536759f602fa502bbc038ae3a8464656fffdc /kernel/features/syscall.c
parent5708ab26c0de8fc1be3e96a0f3f092da0938169e (diff)
Some fixes here and there
Ya, professional commit messages as always
Diffstat (limited to 'kernel/features/syscall.c')
-rw-r--r--kernel/features/syscall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/features/syscall.c b/kernel/features/syscall.c
index 0328f47..ac89d04 100644
--- a/kernel/features/syscall.c
+++ b/kernel/features/syscall.c
@@ -98,7 +98,7 @@ void syscall_handler(struct regs *r)
}
case SYS_NET_CLOSE: {
struct socket *s = (void *)r->ebx;
- if (s->type == S_TCP && s->state != S_CLOSED) {
+ if (s->type == S_TCP && s->state == S_CONNECTED) {
proc_current()->state = PROC_SLEEPING;
proc_yield(r);
return;