On Feb 7, 2008 7:22 AM, Lluís Batlle <[EMAIL PROTECTED]> wrote:
> Hello Russ,
>
> before trying to code something from scrach using createfile & co., I
> wanted to get ramfs working (that of lib9p/, the only example of
> Tree/File I found in plan9port). After your fix related to a proper
> unmount/remount, now I see that the 9pserve process exits hardly if I
> try to create a file in the ramfs filesystem. It doesn't die because
> of a signal. I tried gdb on it, breakpointing at exits/threadexits,
> but I don't understand the makecontext() game of libthread. I put a
> stderr trace in the fscreate() function of ramfs.c, and it doesn't
> even appear. I guess fscreate() is not called.

 libthread in p9p forks. By default, gdb follows the parent process,
which for libthread is not what you're interested in. Try:

(gdb) break fscreate
(gdb) set follow-fork-mode child
(gdb) run

 Oh wait, I see now you put a print in fscreate(). Well, maybe this is
a useful tip anyway :)
-sqweek

Reply via email to