From: John Hodge Date: Sun, 16 Sep 2012 04:07:56 +0000 (+0800) Subject: Modules/IPStack - Fix for Proc_SpawnWorker change X-Git-Tag: rel0.15~706^2~7 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=128b8bb0a8ba15ec7ae1591b759981b57e6feca9;p=tpg%2Facess2.git Modules/IPStack - Fix for Proc_SpawnWorker change --- diff --git a/KernelLand/Modules/IPStack/adapters.c b/KernelLand/Modules/IPStack/adapters.c index 2a02fd27..deb05528 100644 --- a/KernelLand/Modules/IPStack/adapters.c +++ b/KernelLand/Modules/IPStack/adapters.c @@ -85,8 +85,8 @@ void *IPStack_Adapter_Add(const tIPStack_AdapterType *Type, void *Ptr, const voi Mutex_Release( &glIP_Adapters ); // Watch the adapter for incoming packets - tTID tid = Proc_SpawnWorker(Adapter_int_WatchThread, ret); - if(tid < 0) { + void *worker = Proc_SpawnWorker(Adapter_int_WatchThread, ret); + if(!worker) { Log_Warning("IPStack", "Unable to create watcher thread for %p", ret); }