in reply to How to re-execute self?

If you look at documentation for system, you'll see it doesn't return until the command finishes executing. It's definitely not what you want. exec instead of system+die should do the trick nicely.