On Wed, Jan 16, 2008 at 01:39:55PM +0100, Marcus Better <[EMAIL PROTECTED]> was heard to say: > Daniel Burrows wrote: >> What if you run a script that echos a message and then execs aptitude, >> like this, using sudo? > > Cannot reproduce the problem now, will try when it shows up again... > > What about those 3000 gettimeofday calls?
What about them? I suspect those are generated by the apt progress-display code. If apt-get doesn't lock up your computer, then they certainly aren't a problem. If they are a problem, it's likely a kernel bug; on my computer calling gettimeofday 3000 times takes a negligible amount of time and doesn't freeze anything. If you'd like, you can try compiling the following program and running it to see if it will freeze: ======= #include <sys/time.h> #include <time.h> int main(int argc, char **argv) { struct timeval tv; int i; for(i = 0; i < 4000; ++i) gettimeofday(&tv, NULL); return 0; } ======= Daniel -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]