Fix process waiting issues in my_init