TSSRT and TSRIST outputs in listen mode will now request not to be killed by the Comms library, since they handle multiple users

This commit is contained in:
Thulinma 2023-07-24 10:37:42 +02:00
parent 22e0036b8b
commit 41cf557b48
7 changed files with 11 additions and 5 deletions

View file

@ -141,7 +141,7 @@ int main(int argc, char **argv){
cleanUsers.setStatus(COMM_STATUS_INVALID, i);
if (status != COMM_STATUS_INVALID && !(status & COMM_STATUS_DISCONNECT)){
pid_t pid = cleanUsers.getPid(i);
if (pid > 1){
if (pid > 1 && !(cleanUsers.getStatus(i) & COMM_STATUS_NOKILL)){
Util::Procs::Stop(pid);
checkPids.insert(pid);
}
@ -165,3 +165,4 @@ int main(int argc, char **argv){
nukeSem("/MstPull_%s");
nukeSem(SEM_TRACKLIST);
}