Hello,
I investigated a bit and found the issue, which probably explains quite
a few other bugs:
- I added fprintf(stderr,"%s:%s", __FILE__, __func__); fflush(stderr);
basically in all EBUSY places in libdiskfs, libnetfs, libfshelp
- I got it from libnetfs/netfs_S_file_set_translator.
That di
Svante Signell, le Mon 08 Dec 2014 14:17:24 +0100, a écrit :
> Aha, so if I had used fprintf to e.g. stderr the built hurd would boot
> even with printing enabled? Good to know ;)
I do put printfs to stderr in my installed translators essentially all
the time, including ext2fs and such. So yes, th
On Mon, 2014-12-08 at 14:10 +0100, Samuel Thibault wrote:
> Svante Signell, le Mon 08 Dec 2014 14:08:15 +0100, a écrit :
> > On Mon, 2014-12-08 at 13:26 +0100, Samuel Thibault wrote:
> > > Svante Signell, le Mon 08 Dec 2014 13:24:16 +0100, a écrit :
> > > > what is wrong with writing to a file?
> >
Svante Signell, le Mon 08 Dec 2014 14:08:15 +0100, a écrit :
> On Mon, 2014-12-08 at 13:26 +0100, Samuel Thibault wrote:
> > Svante Signell, le Mon 08 Dec 2014 13:24:16 +0100, a écrit :
> > > what is wrong with writing to a file?
> >
> > Nothing wrong, except that you must be sure that the transla
On Mon, 2014-12-08 at 13:26 +0100, Samuel Thibault wrote:
> Svante Signell, le Mon 08 Dec 2014 13:24:16 +0100, a écrit :
> > what is wrong with writing to a file?
>
> Nothing wrong, except that you must be sure that the translator
> can write to it. Making the root translator write to its own
> /
Quoting Samuel Thibault (2014-12-08 13:11:22)
> fprintf(stderr)+fflush *does* work, I've been using various times.
I like to use error (0, 0, "didum"). It's easy to use, prints the
servers name, prints a newline and does fflush. The most annoying
thing about it is that it doesn't print the messa
BTW, one way to check what is actually getting run is using gdb:
$ ps -feM | grep auth
youpi 19910 19908 0:00.01 /bin/fakeauth /bin/sh -c cd "$1" || exit ; shift
$ gdb /bin/fakeauth 19910
...
Reading symbols from /home/youpi/libpthread.so.0.3...(no debugging symbols
found)...done.
Loaded symbo
Svante Signell, le Mon 08 Dec 2014 13:24:16 +0100, a écrit :
> what is wrong with writing to a file?
Nothing wrong, except that you must be sure that the translator
can write to it. Making the root translator write to its own
/tmp/foobar.log is probably deemed to fail, for instance.
Samuel
On Mon, 2014-12-08 at 13:11 +0100, Samuel Thibault wrote:
> Svante Signell, le Mon 08 Dec 2014 13:09:28 +0100, a écrit :
> > On Mon, 2014-12-08 at 12:40 +0100, Samuel Thibault wrote:
> > > Svante Signell, le Mon 08 Dec 2014 12:05:13 +0100, a écrit :
> > > > Which translators are restarted when inst
Svante Signell, le Mon 08 Dec 2014 13:09:28 +0100, a écrit :
> On Mon, 2014-12-08 at 12:40 +0100, Samuel Thibault wrote:
> > Svante Signell, le Mon 08 Dec 2014 12:05:13 +0100, a écrit :
> > > Which translators are restarted when installing,
> >
> > Nothing gets restarted when you install. Only the
Svante Signell, le Mon 08 Dec 2014 13:04:50 +0100, a écrit :
> On Mon, 2014-12-08 at 12:40 +0100, Samuel Thibault wrote:
> > Svante Signell, le Mon 08 Dec 2014 12:05:13 +0100, a écrit :
> > > Which translators are restarted when installing,
> >
> > > exec /my_chroot/DEBs/test_fakeroot-hurd/settran
On Mon, 2014-12-08 at 12:40 +0100, Samuel Thibault wrote:
> Svante Signell, le Mon 08 Dec 2014 12:05:13 +0100, a écrit :
> > Which translators are restarted when installing,
>
> Nothing gets restarted when you install. Only the newer translator that
> you start will use the new implementation.
>
On Mon, 2014-12-08 at 12:40 +0100, Samuel Thibault wrote:
> Svante Signell, le Mon 08 Dec 2014 12:05:13 +0100, a écrit :
> > Which translators are restarted when installing,
>
> > exec /my_chroot/DEBs/test_fakeroot-hurd/settrans --chroot \
> > /my_chroot/DEBs/test_fakeroot-hurd/fakeauth \
>
Svante Signell, le Mon 08 Dec 2014 12:05:13 +0100, a écrit :
> Which translators are restarted when installing,
Nothing gets restarted when you install. Only the newer translator that
you start will use the new implementation.
> and which are when rebooting?
Everything gets restarted of course.
14 matches
Mail list logo