Kaffe+MC+HP-UX
Pavel.Roskin at ecsoft.co.uk
Pavel.Roskin at ecsoft.co.uk
Wed Aug 26 10:57:21 PDT 1998
Hello!
This patch makes Kaffe work from Midnight Commander with subshell support
on HP-UX 10.20. In this situation Kaffe uses /dev/pts/N as stdout (where N
is some number). On this system both FIOSSAIOSTAT and FIOASYNC are defined,
but if Kaffe uses FIOSSAIOSTAT (in
kaffe/kaffe/kaffevm/systems/unix-jthreads/jthread.c) it fails on pty
devices. Errno is EINVAL. Kaffe terminates shortly with "assertion failed".
FIOASYNC seems to work on all devices (I tested plain file, /dev/null, tty
and pty) but I have no idea how to check if this call actually does what it
should do. I have changed jthread.c so that Kaffe uses FIOASYNC (if
available) rather than FIOSSAIOSTAT.
The same problem appears in the same file when FIOSSAIOOWN is used. The
only difference is that nothing bad happens, just some warnings are
printed. The fix is the same: only on hpux and only if the alternative is
available.
After this fix Kaffe runs from Midnight Commander and passes most
regression tests. Only ProcessTest, UDPTest and KaffeVerifyBug fail, but
they failed before this fix too. All tests for threads seem to work.
Comments /* on hpux */ are removed because they become incorrect. By the
way, if it actually was for HP-UX only, the best solution would be to try
the second (non-HP-UX specific) method before the first (fallback for
HP-UX) on all machines.
Pavel Roskin <pavel.roskin at ecsoft.co.uk>
(See attached file: kaffe-mc.diff)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/octet-stream
Size: 780 bytes
Desc: not available
Url : http://kaffe.org/pipermail/kaffe/attachments/19980826/f50d2f36/attachment-0021.obj
More information about the kaffe
mailing list