• Acolyte of the Butterfly
    Acolyte of the Butterfly
    Georg
    Posts: 106 from 2004/4/7
    Quote:

    Piru wrote:
    Such change to CreateNewProc() would prove rather dangerous in my opinion.


    I'm not sure I understand what you mean with change. A debug output is not really a change.

    Maybe my example is bad. Better example: I have seen in (old) sources that you have a FreeTagItems() after the AddTask() in CreateNewProc(). Sometime in future someone may optimize utility tag allocation functions to use semaphore protected memory pool, instead of AllocVec()/FreeVec() -> same problem -> created task may signal he's done with init and SIGF_SINGLE erranously wakes up parent task still inside createnewproc() waiting for memory pool semaphore.
  • »04.01.21 - 07:51
    Profile