From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Bob Bramwell <bbramwel@shaw.ca>, emacs-devel@gnu.org
Subject: Re: QNX subprocess bug
Date: Sat, 25 Mar 2006 23:33:47 -0500 [thread overview]
Message-ID: <87acbdn8k8.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <E1FNJ18-0005Lx-JR@fencepost.gnu.org> (Richard Stallman's message of "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,
Actually, this doesn't have to be true. Several other kinds of similar
(vectorlike) objects have lifted this limitation, e.g. buffers.
We could easily lift this limitation.
That would also allow us to replace raw_status_(high|low) with just
raw_status.
> and (2) Emacs has no way to deal with integer values larger
> than a Lisp integer.
Actually, Emacs can store such values in floating point numbers, or encode
them in cons-cells (as is done for time values as well as file sizes).
Stefan
next prev parent reply other threads:[~2006-03-26 4:33 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <gD4Vf.180176$B94.1009@pd7tw3no>
2006-03-26 0:22 ` QNX subprocess bug Richard Stallman
2006-03-26 4:26 ` Eli Zaretskii
2006-03-27 8:35 ` Richard Stallman
2006-03-27 22:26 ` Kim F. Storm
2006-03-31 3:11 ` Richard Stallman
2006-03-26 4:33 ` Stefan Monnier [this message]
2006-04-03 18:00 bob
2006-04-04 22:55 ` Stefan Monnier
2006-04-05 3:47 ` Richard Stallman
2006-04-05 9:01 ` Kim F. Storm
2006-04-05 13:03 ` Stefan Monnier
2006-04-05 19:06 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87acbdn8k8.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=bbramwel@shaw.ca \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).