mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-06 21:33:08 +00:00
use vfork()
disable https serialisation in buddylookup plugin git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@758 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
parent
409684b2b2
commit
95918b58c2
2 changed files with 5 additions and 7 deletions
|
|
@ -142,11 +142,7 @@ static void spawn_linphonec(int argc, char *argv[]){
|
|||
}
|
||||
args[j++]=NULL;
|
||||
|
||||
#ifdef __BFIN__ /* is a uClinux target */
|
||||
pid = vfork();
|
||||
#else
|
||||
pid = fork();
|
||||
#endif
|
||||
if (pid < 0){
|
||||
fprintf(stderr,"Could not fork\n");
|
||||
exit(-1);
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@
|
|||
#endif
|
||||
#include <libsoup/soup.h>
|
||||
|
||||
#define SERIALIZE_HTTPS 0
|
||||
|
||||
static bool_t buddy_lookup_init(void){
|
||||
return TRUE;
|
||||
};
|
||||
|
|
@ -152,7 +154,7 @@ static int xml_rpc_parse_response(BLReq *blreq, SoupMessage *sm){
|
|||
return blreq->base.status==BuddyLookupDone ? 0 : -1;
|
||||
}
|
||||
|
||||
#ifdef WIN32
|
||||
#if SERIALIZE_HTTPS
|
||||
/*on windows libsoup support for threads with gnutls is not yet functionnal (only in git)
|
||||
This will come in next release of libsoup, probably.
|
||||
In the meantime, we are forced to serialize all soup https processing with a big
|
||||
|
|
@ -168,7 +170,7 @@ static void * process_xml_rpc_request(void *up){
|
|||
int code;
|
||||
g_signal_connect_swapped(G_OBJECT(sm),"got-headers",(GCallback)got_headers,blreq);
|
||||
blreq->base.status=BuddyLookupConnecting;
|
||||
#ifdef WIN32
|
||||
#if SERIALIZE_HTTPS
|
||||
g_static_mutex_lock(&big_mutex);
|
||||
#endif
|
||||
code=soup_session_send_message(blreq->session,sm);
|
||||
|
|
@ -179,7 +181,7 @@ static void * process_xml_rpc_request(void *up){
|
|||
ms_error("request failed, error-code=%i (%s)",code,soup_status_get_phrase(code));
|
||||
blreq->base.status=BuddyLookupFailure;
|
||||
}
|
||||
#ifdef WIN32
|
||||
#if SERIALIZE_HTTPS
|
||||
g_static_mutex_unlock(&big_mutex);
|
||||
#endif
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue