[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bugs #10113] Patch for kvm_code on FreeBSD 5 to allow running without /
From: |
Adam Fedor |
Subject: |
[bugs #10113] Patch for kvm_code on FreeBSD 5 to allow running without /proc |
Date: |
Tue, 24 Aug 2004 00:27:32 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/125.4 (KHTML, like Gecko) Safari/125.9 |
This mail is an automated notification from the bugs tracker
of the project: GNUstep.
/**************************************************************************/
[bugs #10113] Latest Modifications:
Changes by:
Adam Fedor <fedor@gnu.org>
'Date:
Tue 08/24/2004 at 04:10 (US/Mountain)
------------------ Additional Follow-up Comments ----------------------------
it seems a shame to use #ifdef __FREEBSD__ if we could have the problem on
other systems. Why not just check if kvm_getenv works, and if not, use the
environ variable? In fact, maybe we should just always use the environ
variable since that should work everywhere?
/**************************************************************************/
[bugs #10113] Full Item Snapshot:
URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=10113>
Project: GNUstep
Submitted by: Pete French
On: Mon 08/23/2004 at 15:34
Category: Base/Foundation
Severity: 7 - Major
Item Group: Bug
Resolution: None
Privacy: Public
Assigned to: fedor
Status: Open
Summary: Patch for kvm_code on FreeBSD 5 to allow running without /proc
Original Submission: The KVM code used by FreeBSD to read argv and envp
requires
/proc to be mounted for the envrionemtne to read properly.
This is not true by default on FreeBSD system of 5 and above.
The attached patch alters the code to always use the static
environment pointer on FreeBSD, even when using KVM. This
allows the code to work properly on FreeBSD 5, whilst also
working on previous versions.
Follow-up Comments
------------------
-------------------------------------------------------
Date: Tue 08/24/2004 at 04:10 By: Adam Fedor <fedor>
it seems a shame to use #ifdef __FREEBSD__ if we could have the problem on
other systems. Why not just check if kvm_getenv works, and if not, use the
environ variable? In fact, maybe we should just always use the environ
variable since that should work everywhere?
File Attachments
-------------------
-------------------------------------------------------
Date: Mon 08/23/2004 at 15:34 Name: kvm_fbsd.cdiff.gz.uue Size: 1.14KB By:
minusbat
http://savannah.gnu.org/bugs/download.php?item_id=10113&item_file_id=1596
For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=10113>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/