Restarting with C