The exit() function should always use positive exit values

This commit is contained in:
Marcel Holtmann 2010-04-12 17:37:50 -07:00
parent 0e178517ce
commit 5b229e60c9
1 changed files with 3 additions and 3 deletions

View File

@ -913,17 +913,17 @@ static void test_server(int type)
switch (type) {
case 0:
if (create_tty("/phonesim1") == FALSE)
exit(-1);
exit(1);
add_handler(server);
break;
case 1:
if (create_tcp("/phonesim1", DEFAULT_TCP_PORT) == FALSE)
exit(-1);
exit(1);
break;
case 2:
if (create_unix("/phonesim1", DEFAULT_SOCK_PATH) == FALSE)
exit(-1);
exit(1);
break;
}
}