On Thu, Mar 06, 2008 at 09:28:57AM -0600, Tom Mueller wrote: > Is there a reason why this isn't done with a thread? Threads are a more > efficient way to do this (no need for a fork) and they are portable to > other operating systems.
I did it that way so that if something went wrong with the update, and the process went gonzo, it could be killed or resource-controlled. You can't do that with a thread. The overhead of the fork is irrelevant in comparison to the work the process will be doing. That said, feel free to implement it as a thread on OSes that don't have processes. Danek _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
