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)
NSPR
NSPR
Tracking
(Not tracked)
NEW
People
(Reporter: greg, Unassigned)
Details
Attachments
(1 file, 1 obsolete file)
8.42 KB,
patch
|
Details | Diff | Splinter Review |
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
Reporter | ||
Comment 1•19 years ago
|
||
Updated•19 years ago
|
Attachment #217228 -
Flags: review?
Updated•18 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Updated•18 years ago
|
QA Contact: wtchang → nspr
Reporter | ||
Comment 2•18 years ago
|
||
Corrects bug in waitpid call in UNIX portion of original patch.
Attachment #217228 -
Attachment is obsolete: true
Attachment #217228 -
Flags: review?
Updated•2 years ago
|
Severity: normal → S3
Comment 3•2 years ago
|
||
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.
Description
•