Call setsid always when spawning backend
This commit is contained in:
parent
5c015b5547
commit
263f0b11d8
2 changed files with 2 additions and 1 deletions
|
@ -41,7 +41,7 @@ users_per_backend=10
|
|||
backend=/usr/bin/spectrum2_libpurple_backend
|
||||
#backend=/usr/bin/spectrum2_libircclient-qt_backend
|
||||
# For skype:
|
||||
#backend=/usr/bin/setsid /usr/bin/xvfb-run -n BACKEND_ID -s "-screen 0 10x10x8" -f /tmp/x-skype-gw /usr/bin/spectrum2_skype_backend
|
||||
#backend=/usr/bin/xvfb-run -n BACKEND_ID -s "-screen 0 10x10x8" -f /tmp/x-skype-gw /usr/bin/spectrum2_skype_backend
|
||||
|
||||
# Libpurple protocol-id for spectrum_libpurple_backend
|
||||
protocol=prpl-jabber
|
||||
|
|
|
@ -157,6 +157,7 @@ static unsigned long exec_(std::string path, const char *host, const char *port,
|
|||
// fork and exec
|
||||
pid_t pid = fork();
|
||||
if ( pid == 0 ) {
|
||||
setsid();
|
||||
// child process
|
||||
exit(execv(argv[0], argv));
|
||||
} else if ( pid < 0 ) {
|
||||
|
|
Loading…
Add table
Reference in a new issue