cloudflare / tableflip

Graceful process restarts in Go
BSD 3-Clause "New" or "Revised" License
2.91k stars 148 forks source link

fix incorrect arguments when starting a child #61

Closed lmb closed 3 years ago

lmb commented 3 years ago

The previous commit introduced a bug in how arguments are passed to children. We need to make argv[0] the name of the binary, otherwise the first argument we pass becomes argv[0].