]> git.ipfire.org Git - thirdparty/iproute2.git/commit
netns: follow return value conventions of the rest of the code
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 12 Jul 2013 15:43:23 +0000 (08:43 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 12 Jul 2013 15:43:23 +0000 (08:43 -0700)
commita05f6511f5432257a5efdd8b369735228c167e94
treeccce33f490706fe5f878878f317197a7bbf3aaf4
parent1284fd3a81ee1e0c1b858292f030b0e53063bda0
netns: follow return value conventions of the rest of the code

The netns code was using EXIT_SUCCESS/EXIT_FAILURE but the rest of the ip
code used -1 explictly, so change to follow convention. Also, certain types
of errors like fork failure should abort a batch operation, rather than just
returning an error.
ip/ipnetns.c