MDEV-8012: Wrong exit code when asking for help

Make mysql_waitpid return exit code 0 when -V flag is supplied.
This commit is contained in:
Vicențiu Ciorbaru 2016-06-12 22:45:15 +03:00
parent 67b4a6f576
commit 416006a3d8

View file

@ -50,7 +50,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
switch(optid) {
case 'V':
printf("%s version %s by Jani Tolonen\n", progname, VER);
exit(-1);
exit(0);
case 'I':
case '?':
usage();