mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* error while implementing kill()
@ 2005-03-23 14:08 sounak chakraborty
  2005-03-23 14:52 ` Jan Engelhardt
  0 siblings, 1 reply; 3+ messages in thread
From: sounak chakraborty @ 2005-03-23 14:08 UTC (permalink / raw)
  To: linux kernel

  
dear sir,
 I am unable to use the system call kill(pid,sig).I
have included the header file <signal.h>. I used it in
a module to kill a process. The module is compiling
properly but giving the following error while
inserting the module,
   unresolved symbol kill()

I am unable to track the bug here. 
kindly help me out.

I want to kill a process through the process ID inside
a module.
Is there any other approach other than using the
kill() function?

Thanks in advance,

sounak

________________________________________________________________________
Yahoo! India Matrimony: Find your partner online. http://yahoo.shaadi.com/india-matrimony/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: error while implementing kill()
  2005-03-23 14:08 error while implementing kill() sounak chakraborty
@ 2005-03-23 14:52 ` Jan Engelhardt
  2005-03-23 16:01   ` linux-os
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Engelhardt @ 2005-03-23 14:52 UTC (permalink / raw)
  To: sounak chakraborty; +Cc: linux kernel

>dear sir,
> I am unable to use the system call kill(pid,sig).I
>have included the header file <signal.h>. I used it in
>a module to kill a process. The module is compiling
>properly but giving the following error while
>inserting the module,
>   unresolved symbol kill()

Who says that kill() is
1) a defined function
2) is the function that does what the libc call does
3) is the function that does what you expect

As for sending signals,
it's been posted today already, see the archives.
http://marc.theaimsgroup.com/?l=linux-kernel&m=111155537319322&w=2


Jan Engelhardt
-- 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: error while implementing kill()
  2005-03-23 14:52 ` Jan Engelhardt
@ 2005-03-23 16:01   ` linux-os
  0 siblings, 0 replies; 3+ messages in thread
From: linux-os @ 2005-03-23 16:01 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: sounak chakraborty, linux kernel


kill_proc(pid, SIGNAL, x) is used inside the kernel to
send signals to kernel threads. It is not necessarily
the way to kill user-mode tasks. They should be
sent a fatal signal from user-mode.

On Wed, 23 Mar 2005, Jan Engelhardt wrote:

>> dear sir,
>> I am unable to use the system call kill(pid,sig).I
>> have included the header file <signal.h>. I used it in
>> a module to kill a process. The module is compiling
>> properly but giving the following error while
>> inserting the module,
>>   unresolved symbol kill()
>
> Who says that kill() is
> 1) a defined function
> 2) is the function that does what the libc call does
> 3) is the function that does what you expect
>
> As for sending signals,
> it's been posted today already, see the archives.
> http://marc.theaimsgroup.com/?l=linux-kernel&m=111155537319322&w=2
>
>
> Jan Engelhardt
> -- 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>

Cheers,
Dick Johnson
Penguin : Linux version 2.6.11 on an i686 machine (5537.79 BogoMips).
  Notice : All mail here is now cached for review by Dictator Bush.
                  98.36% of all statistics are fiction.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-03-23 16:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-23 14:08 error while implementing kill() sounak chakraborty
2005-03-23 14:52 ` Jan Engelhardt
2005-03-23 16:01   ` linux-os

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®