nelhage / reptyr

Reparent a running program to a new terminal
MIT License
5.78k stars 216 forks source link

Use strtoul(3) instead of atoi(3) for user input #41

Closed worr closed 10 years ago

worr commented 10 years ago

Other uses of atoi(3) aren't a big deal, since they're coming from readdir(3) or proc files. Processing user input should probably be a little friendlier. This patch tries to better handle invalid arguments for pids.