port exit.c