diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-07-07 07:02:46 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-07-07 07:02:46 +0300 |
| commit | b97967ab660243b723f246db03c2e4a82e125f3f (patch) | |
| tree | d30ef3f9dbbc33453c868282b749018659fb6a6b /src/orphanage.c | |
| parent | 122374c362ba8bb9082385da3c82e264ab594f15 (diff) | |
| download | kmi-b97967ab660243b723f246db03c2e4a82e125f3f.tar.gz kmi-b97967ab660243b723f246db03c2e4a82e125f3f.zip | |
simplify assertions
+ No real point having multiple different levels of assertions, just say
you assert something and be done with it
Diffstat (limited to 'src/orphanage.c')
| -rw-r--r-- | src/orphanage.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |
