Open Bug 332755 Opened 19 years ago Updated 2 years ago

Need way to find out if process spawned with PR_CreateProcess is running

Categories

(NSPR :: NSPR, enhancement)

enhancement

Tracking

(Not tracked)

People

(Reporter: greg, Unassigned)

Details

Attachments

(1 file, 1 obsolete file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1 We needed a way to find out if a process spawned with PR_CreateProcess had finished. Having such a method would enable you to call PR_WaitProcess only on those processes that you know are already finished, to prevent unnecessary blocking. Among other things, using this function (in conjunction with PR_WaitProcess/PR_KillProcess), makes it possible to perform a 'timed wait' on a process from a single thread. I created a patch that adds 'PRBool PR_IsProcessRunning(PRProcess*)' to the PRProcess interface. Though the patch is for all platforms, I only compiled/tested it on XP & UNIX. Reproducible: Always
Attachment #217228 - Flags: review?
Status: UNCONFIRMED → NEW
Ever confirmed: true
QA Contact: wtchang → nspr
Corrects bug in waitpid call in UNIX portion of original patch.
Attachment #217228 - Attachment is obsolete: true
Attachment #217228 - Flags: review?
Severity: normal → S3

The bug assignee is inactive on Bugzilla, so the assignee is being reset.

Assignee: wtc → nobody
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: