added QSE_CLI_DISCRETIONARY_OPTVAL.

renamed QSE_CLI_OPTVAL to QSE_CLI_REQUIRE_OPTVAL
renamed QSE_CLI_OPTNAME to QSE_CLI_REQUIRE_OPTNAME
This commit is contained in:
2018-10-17 08:07:45 +00:00
parent e936bf3502
commit 4a10c5d7cd
4 changed files with 14 additions and 9 deletions

View File

@ -136,12 +136,12 @@ int App::daemonize (bool chdir_to_root, int fork_count, bool root_only) QSE_CPP_
{
int keep[] = { 0, 1, 2};
if (qse_close_open_fds_using_proc (keep, QSE_COUNTOF(keep)) <= -1)
if (qse_close_open_fds_using_proc(keep, QSE_COUNTOF(keep)) <= -1)
{
for (int i = qse_get_highest_fd(); i >= 3; i--) QSE_CLOSE (i);
}
int fd = QSE_OPEN ("/dev/null", O_RDWR, 0);
int fd = QSE_OPEN("/dev/null", O_RDWR, 0);
if (fd >= 0)
{
if (fd != 0) QSE_DUP2 (fd, 0);