Closed Bug 77197 Opened 25 years ago Closed 24 years ago

fork & exec does not work in Neutrino

Categories

(NSPR :: NSPR, defect, P2)

x86
Neutrino
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dinglis, Assigned: wtc)

Details

Attachments

(3 files)

Neutrino does not support fork in threaded applications
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: patch
reassign to wtc.
Assignee: larryh → wtc
Status: NEW → ASSIGNED
Priority: -- → P1
Target Milestone: --- → 4.2
I reviewed the patch and did some editing. I'll check it in when I get the approval.
I took a closer look at your patch and found that its use of dup2() seems incorrect. Also, the code to set the current working directory for the new process is incorrect. I will attach a new patch, which is my attempt to fix it although I didn't implement the current working directory feature. Is there online documentation for spawn()? Can a threaded process call vfork()?
Priority: P1 → P2
This patch works fine for me.
is this checked in?
I checked in proposed patch v2 (attachment 37328 [details] [diff] [review]) on the tip of NSPR. Will check it in on the NSPRPUB_PRE_4_2_CLIENT_BRANCH when the Mozilla tree opens.
Fix checked in on the NSPRPUB_PRE_4_2_CLIENT_BRANCH.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: