Bug 26005 - waitFor() not returning status but pid.
Summary: waitFor() not returning status but pid.
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 1.0   Edit
Hardware: PC Neutrino
: P3 critical (vote)
Target Milestone: 1.0 - Release   Edit
Assignee: Alain Magloire CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2002-11-11 17:27 EST by Chris McKillop CLA
Modified: 2008-06-18 18:04 EDT (History)
1 user (show)

See Also:


Attachments
Patch to spawner.c for QNX spawner. (684 bytes, patch)
2002-11-11 17:28 EST, Chris McKillop CLA
bjorn.freeman-benson: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris McKillop CLA 2002-11-11 17:27:06 EST
The waitFor(int) JNI on QNX is returning the PID of the process rather then the
status of the process on exit.  This confuses many things.
Comment 1 Chris McKillop CLA 2002-11-11 17:28:24 EST
Created attachment 2375 [details]
Patch to spawner.c for QNX spawner.

This patch fixes the problem (code borrowed from Solaris spawner).  Doesn't
actually through the exception since none of the other platforms seems to throw
exceptions from theirJNI code.
Comment 2 Alain Magloire CLA 2002-11-12 09:56:51 EST
Patch applied

But since I do not have the headers to generate a new
libspanwer.so.  Could you provide me with one
by email or you /home/cdm etc ..

Thanks for catching this.
Comment 3 Alain Magloire CLA 2002-12-13 11:49:57 EST
Fix in CVS