From b97967ab660243b723f246db03c2e4a82e125f3f Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 7 Jul 2024 07:02:46 +0300 Subject: simplify assertions + No real point having multiple different levels of assertions, just say you assert something and be done with it --- src/orphanage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/orphanage.c') diff --git a/src/orphanage.c b/src/orphanage.c index 9da6f8b..e613e8b 100644 --- a/src/orphanage.c +++ b/src/orphanage.c @@ -24,7 +24,7 @@ void orphanize(struct tcb *t) void unorphanize(struct tcb *t) { - catastrophic_assert(!is_rpc(t)); + assert(!is_rpc(t)); /* attach to init process */ struct tcb *init = get_tcb(1); @@ -43,7 +43,7 @@ void unorphanize(struct tcb *t) clear_bits(t->state, TCB_ORPHAN); - catastrophic_assert(init->callback); + assert(init->callback); set_args3(t, 0, SYS_USER_ORPHANED, t->tid); set_return(t, init->callback); t->callback = init->callback; -- cgit v1.3