Welcome, Guest. Please login or register.

Author Topic: CreateNewProc() task termination  (Read 1866 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show all replies
    • http://www.iki.fi/sintonen/
Re: CreateNewProc() task termination
« on: June 22, 2003, 11:50:31 AM »
RemTask((struct Task *) DaProc);

However, this is very bad idea unless if the running process is in a known state. If the process has allocated some resources, those resources will not be released.

It is always better to signal the process to terminate, that way it can do the cleanup as needed.