labath added a comment.

I don't want to stand in the way of progress (and I do think that getting rid 
of the timeout dependency is progress), but this implementation regresses in a 
couple of features compared to using timeout:

- timeout tries (with moderate success) to cleanup children spawned by the main 
process. your implementation will (afaik) kill only the main process. This is 
especially important for build bots, since leaking processes will starve the 
bot's resources after a while (and we have had problems with this on our darwin 
build bot).
- we intentionally had timeout terminate the child processes with SIGQUIT, 
because this produces core files of the terminated processes. I have found this 
very useful when diagnosing the sources of hanging tests. I'd like to have the 
possibility to do this, even if it will not be enabled by default.

Do you think that the benefits of this change outweigh these issues? If so, and 
they don't cause our bots to break, then we can put it in (and i'll probably 
implement the code dumping feature when I find some time), but I though you 
should be aware of these downsides.


http://reviews.llvm.org/D13124



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to