Closed
Bug 700821
Opened 14 years ago
Closed 14 years ago
js-ctypes crashes trying to use popen/fgets/pclose
Categories
(Core :: js-ctypes, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: j, Unassigned)
Details
Attachments
(1 file)
|
2.34 KB,
text/javascript
|
Details |
trying to use popen/fgets/pclose from libc to run another command and read its output to pass it to javascript, Firefox crashes all the time.
| Reporter | ||
Updated•14 years ago
|
Attachment #573019 -
Attachment mime type: application/octet-stream → text/javascript
Comment 1•14 years ago
|
||
Note that your code is roughly equivalent in C terms to:
char x;
fgets(&x, 1024, fpipe);
Which doesn't seem all that correct to me.
| Reporter | ||
Comment 2•14 years ago
|
||
ah like that.
are there more examples around by now?
https://developer.mozilla.org/en/js-ctypes/Examples ist still a bit empty.
with ctypes.char.array(1024) it works.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•