Thread: How to kill process that are spawn by spawnl?

  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    58

    How to kill process that are spawn by spawnl?

    Hi everyone,
    I was trying to spawn a process by using spawn, however I doesn't really know how to kill it. Any idea how can I do it?

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Right, if you use spawn and friends, you don't really have a good way to kill the process, as you will first need to locate the process handle, then use TerminateProcess.

    You may be able to use EnumProcesses to find the ID.

    It's much easier if you use "CreateProcess()".

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. fork, execv, spawn, or something else?
    By DavidP in forum C++ Programming
    Replies: 8
    Last Post: 01-26-2009, 04:25 PM
  2. Replies: 3
    Last Post: 10-15-2008, 09:24 AM
  3. Problem with forking a process
    By Unitedroad in forum C Programming
    Replies: 10
    Last Post: 10-04-2007, 01:43 AM
  4. process programming
    By St0rM-MaN in forum Linux Programming
    Replies: 2
    Last Post: 09-15-2007, 07:53 AM