summaryrefslogtreecommitdiffstats
path: root/xrdp/xrdp_listen.c
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2012-05-26 19:00:14 -0700
committerJay Sorg <jay.sorg@gmail.com>2012-05-26 19:00:14 -0700
commit0566da74ebd6427a0e716a7a771209045f3dafe9 (patch)
treed6c82e2542ee754a694fa738304e55c218d2d009 /xrdp/xrdp_listen.c
parent5e72f90bba135d0bfa72346fde55b889ce4ea835 (diff)
downloadxrdp-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.c11
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;
+ }
+ }
}
}
}