[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
settrans
From: |
Neal H Walfield |
Subject: |
settrans |
Date: |
Wed, 17 Jan 2001 02:28:17 -0500 |
User-agent: |
Mutt/1.2.5i |
I have modified fshelp_start_translator_long to pass the task port for
the translator to the call back function. This works fine if a debugger
is no attached to either the translator or the settrans. When I do, the
translator gets MACH_PORT_NULL when it does a getport call. Here is
some output:
neal@hurd:~ (0)$ settrans -acgP foo /hurd/ext2fs part/7
Translator pid: 199
Pausing... <-- Attach gdb
ext2fs: ../../project/hurd/hurd-build/libdiskfs/init-startup.c:178:
_diskfs_init_completed: Assertion `proc' failed.
neal@hurd:~ (0)$
If I do not attach a debugger, everything works correctly:
neal@hurd:~ (0)$ settrans -acgP foo /hurd/ext2fs part/7
Translator pid: 213
Pausing... <-- Just hit enter
neal@hurd:~ (0)$ ls foo
lost+found
neal@hurd:~ (0)$
The callback function does the following:
if (pause)
{
fprintf (stderr, "Translator pid: %d\nPausing...", task2pid (task));
getchar ();
}
Thus, all that has been added is the call to task2pid.
Any ideas?
pgp2HzqJuxQG4.pgp
Description: PGP signature
- settrans,
Neal H Walfield <=
- Re: settrans, Neal H Walfield, 2001/01/17
- Re: settrans, Roland McGrath, 2001/01/17
- Re: settrans, Neal H Walfield, 2001/01/17
- Re: settrans, Neal H Walfield, 2001/01/18
- Re: settrans, Roland McGrath, 2001/01/20
- Re: settrans, Neal H Walfield, 2001/01/24
- Re: settrans, Roland McGrath, 2001/01/24
- Re: settrans, Neal H Walfield, 2001/01/24
- Re: settrans, Roland McGrath, 2001/01/24