dect
/
linux-2.6
Archived
13
0
Fork 0

Staging: epl: do not use CLONE_SIGHAND with allow_signal()

Not sure this patch is really needed since kernel_thread() is deprecated
(and checkpatch.pl complains).

But we should not use kernel_thread(CLONE_SIGHAND) if we are going to play
with signals.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Oleg Nesterov 2009-05-04 00:15:31 +02:00 committed by Greg Kroah-Hartman
parent d604fc995e
commit 6456f0b768
2 changed files with 6 additions and 5 deletions

View File

@ -334,7 +334,8 @@ tEplKernel EplSdoUdpuConfig(unsigned long ulIpAddr_p, unsigned int uiPort_p)
}
// create Listen-Thread
SdoUdpInstance_g.m_ThreadHandle =
kernel_thread(EplSdoUdpThread, &SdoUdpInstance_g, CLONE_KERNEL);
kernel_thread(EplSdoUdpThread, &SdoUdpInstance_g,
CLONE_FS | CLONE_FILES);
if (SdoUdpInstance_g.m_ThreadHandle == 0) {
Ret = kEplSdoUdpThreadError;
goto Exit;

View File

@ -532,8 +532,8 @@ tShbError ShbIpcStartSignalingNewData(tShbInstance pShbInstance_p,
//create thread for signalling new data
pShbMemInst->m_tThreadNewDataId =
kernel_thread(ShbIpcThreadSignalNewData, pShbInstance_p,
CLONE_KERNEL);
kernel_thread(ShbIpcThreadSignalNewData, pShbInstance_p,
CLONE_FS | CLONE_FILES);
Exit:
return ShbError;
@ -636,8 +636,8 @@ tShbError ShbIpcStartSignalingJobReady(tShbInstance pShbInstance_p,
pShbMemHeader->m_fJobReady = FALSE;
//create thread for signalling new data
pShbMemInst->m_tThreadJobReadyId =
kernel_thread(ShbIpcThreadSignalJobReady, pShbInstance_p,
CLONE_KERNEL);
kernel_thread(ShbIpcThreadSignalJobReady, pShbInstance_p,
CLONE_FS | CLONE_FILES);
Exit:
return ShbError;
}