diff options
| author | Jay Sorg <jay.sorg@gmail.com> | 2012-05-26 19:00:14 -0700 |
|---|---|---|
| committer | Jay Sorg <jay.sorg@gmail.com> | 2012-05-26 19:00:14 -0700 |
| commit | 0566da74ebd6427a0e716a7a771209045f3dafe9 (patch) | |
| tree | d6c82e2542ee754a694fa738304e55c218d2d009 /xrdp/xrdp_listen.c | |
| parent | 5e72f90bba135d0bfa72346fde55b889ce4ea835 (diff) | |
| download | xrdp-proprietary-0566da74ebd6427a0e716a7a771209045f3dafe9.tar.gz xrdp-proprietary-0566da74ebd6427a0e716a7a771209045f3dafe9.zip | |
xrdp: add fork option to xrdp.ini
Diffstat (limited to 'xrdp/xrdp_listen.c')
| -rw-r--r-- | xrdp/xrdp_listen.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/xrdp/xrdp_listen.c b/xrdp/xrdp_listen.c index 36980b15..bbdd729a 100644 --- a/xrdp/xrdp_listen.c +++ b/xrdp/xrdp_listen.c @@ -174,6 +174,17 @@ xrdp_listen_get_port_address(char* port, int port_bytes, val = (char*)list_get_item(values, index); g_strncpy(address, val, address_bytes - 1); } + if (g_strcasecmp(val, "fork") == 0) + { + val = (char*)list_get_item(values, index); + if ((g_strcasecmp(val, "yes") == 0) || + (g_strcasecmp(val, "on") == 0) || + (g_strcasecmp(val, "true") == 0) || + (g_atoi(val) != 0)) + { + startup_param->fork = 1; + } + } } } } |
