lkml.org 
[lkml]   [2005]   [Mar]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: error while implementing kill()

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.
-
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/

\
 
 \ /
  Last update: 2005-04-06 13:30    [W:0.032 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site