Re: Shutting down fds prior to execvpe in rainbow/inject.py: joyride 247 under Qemu

2007-11-07 Thread Alexander M. Latham
--- Michael Stone wrote: > Logviewer hangs just like Clock. So does MaMa Media Creative Center, > and Record.Hmmm. Record has been crashing on startup for a long time (a week?) because it's trying to mkdir() a directory that already exists. MaMa Media Creative Center had a similar problem

Re: Shutting down fds prior to execvpe in rainbow/inject.py: joyride 247 under Qemu

2007-11-07 Thread Marcus Leech
Albert Cahalan wrote: > Marcus Leech writes: > > >> I experimentally put some code just before the execvpe() in >> inject.py to close FDs >= 3 and <= 10. I picked 10 out of >> the air, but I wouldn't expect there to be many open file >> descriptors at that point. Actually, given the semantics

Re: Shutting down fds prior to execvpe in rainbow/inject.py: joyride 247 under Qemu

2007-11-06 Thread Albert Cahalan
Marcus Leech writes: > I experimentally put some code just before the execvpe() in > inject.py to close FDs >= 3 and <= 10. I picked 10 out of > the air, but I wouldn't expect there to be many open file > descriptors at that point. Actually, given the semantics of dup(), > you could use it to pr

Re: Shutting down fds prior to execvpe in rainbow/inject.py: joyride 247 under Qemu

2007-11-06 Thread Benjamin M. Schwartz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael Stone wrote: >> I note that Clock doesn't work at all (Stays in "Starting..." forever), > > If you look at /home/olpc/.sugar/default/logs/shell.log you'll see that > Clock is crashing during startup trying to find 'clock.svg'. Heads up to Act

Re: Shutting down fds prior to execvpe in rainbow/inject.py: joyride 247 under Qemu

2007-11-06 Thread Michael Stone
On Tue, Nov 06, 2007 at 10:12:16PM -0500, Marcus Leech wrote: > I experimentally put some code just before the execvpe() in inject.py to > close FDs >= 3 and <= 10. I picked 10 out of the > air, but I wouldn't expect there to be many open file descriptors at > that point. Actually, given the se

Shutting down fds prior to execvpe in rainbow/inject.py: joyride 247 under Qemu

2007-11-06 Thread Marcus Leech
Michael et al: I just uploaded the EXT3 image for Joyride 247, and it seems to mostly work. I experimentally put some code just before the execvpe() in inject.py to close FDs >= 3 and <= 10. I picked 10 out of the air, but I wouldn't expect there to be many open file descriptors at that point.