[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: QNX subprocess bug
From: |
Richard Stallman |
Subject: |
Re: QNX subprocess bug |
Date: |
Sat, 25 Mar 2006 19:22:02 -0500 |
The bug is showing up in emacs 21.2.1 on QNX 6.3.0. It appears
that process IDs on QNX really occupy 32-bits. Some of them are
quite large. This causes a problem in the subprocess package
which uses an elisp integer (28 bits + type info - I think) to
try to store the PID.
Obvious this problem could, in principle, arise on any system that uses
32-bit
process IDs, and it seems to me rather sloppy programming to use such a
shortcut, especially in such comparatively rarely executed code.
It is not a short cut. The reason the pid is represented as a Lisp
integer is that (1) all the slots in a process object have to be Lisp
objects, and (2) Emacs has no way to deal with integer values larger
than a Lisp integer.
It will not be easy to fix this problem. Since QNX support is not a
high priority for GNU, I think it is up to you to implement the fix.
But since there is no obvious way to fix it, first you'd need to
work out a way that would not cause too much problem in Emacs.