Hi,
is there an equivalent function in windows or is it possible to emulate the kill(pid,sig) function?
I don't know of any other simple way of interprocess communication, since pipes, sockets, etc. is simply too much of a bother, signals are much easier and quicker to use.
EDIT: and ofcourse I mean in C (^_^)
kill(pid,sig) in windows
Started by kenna, May 16 2007 12:16 PM
3 replies to this topic
#1
Posted 16 May 2007 - 12:16 PM
#2
Posted 16 May 2007 - 01:47 PM
This old sample is in C++, but all the functions for finding the running processes and how to kill them will be easy to extract. Happy killing :)
"Stupid bug! You go squish now!!" - Homer Simpson
#3
Posted 16 May 2007 - 01:52 PM
Thanks for the example, I'll be sure to go through it thoroughly to see if I can find anything useful.
However, the problem here is not terminating a process, but sending signals between processes, e.g. kill(pid, SIGINT), to allow for interrupt-like communication between processes. I haven't found any information for this on the internet, except that windows doesn't use signals as IPC, so you can only use raise.
Any suggestions as how to use signals, or a signal-like system for IPC in windows?
However, the problem here is not terminating a process, but sending signals between processes, e.g. kill(pid, SIGINT), to allow for interrupt-like communication between processes. I haven't found any information for this on the internet, except that windows doesn't use signals as IPC, so you can only use raise.
Any suggestions as how to use signals, or a signal-like system for IPC in windows?
#4
Posted 16 May 2007 - 03:43 PM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











