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 */
+1
View File
@@ -192,6 +192,7 @@ char *g_getenv(const char *name);
int g_exit(int exit_code);
int g_getpid(void);
int g_sigterm(int pid);
int g_sighup(int pid);
int g_getuser_info(const char *username, int *gid, int *uid, char **shell,
char **dir, char **gecos);
int g_getgroup_info(const char *groupname, int *gid);