Add --reload option to sesman

Adds a --reload switch to sesman and plumbs this in
to systemctl reload xrdp-sesman.service
This commit is contained in:
matt335672
2022-11-08 11:18:34 +00:00
parent 4ff968bc98
commit 3a0a932472
5 changed files with 102 additions and 38 deletions
+12
View File
@@ -3043,6 +3043,18 @@ g_sigterm(int pid)
#endif
}
/*****************************************************************************/
/* does not work in win32 */
int
g_sighup(int pid)
{
#if defined(_WIN32)
return 0;
#else
return kill(pid, SIGHUP);
#endif
}
/*****************************************************************************/
/* returns 0 if ok */
/* the caller is responsible to free the buffs */