spawn and stdout in 8.1

瀏覽次數:150 次
跳到第一則未讀訊息

Mark Hahn

未讀,
2012年7月3日 下午2:25:202012/7/3
收件者:nodejs
After switching to 8.1 several modules I use, like imagemagick, seem to be having trouble getting stdout back from a spawn.  Did something change in spawn?

Charlie McConnell

未讀,
2012年7月3日 下午3:28:122012/7/3
收件者:nod...@googlegroups.com
The most likely cause is that you now want to listen for the 'close' event instead of 'exit'.  'exit' now fires when the child actually exits, 'close' fires when all stdio streams have closed. 

On Tue, Jul 3, 2012 at 11:25 AM, Mark Hahn <ma...@hahnca.com> wrote:
After switching to 8.1 several modules I use, like imagemagick, seem to be having trouble getting stdout back from a spawn.  Did something change in spawn?

--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en



--
Charlie McConnell
Head of Developer Operations
Nodejitsu, Inc.

Mark Hahn

未讀,
2012年7月3日 下午3:47:142012/7/3
收件者:nod...@googlegroups.com
Thanks...

I guess I'll have to wait until modules I use have been updated for 0.8.

Joshua Holbrook

未讀,
2012年7月3日 下午3:51:552012/7/3
收件者:nod...@googlegroups.com
I'd just start patching them, especially if the library's just
shelling out on the backend. Seems like it wouldn't be too bad. :)

--Josh
Joshua Holbrook
Engineer
Nodejitsu Inc.
jo...@nodejitsu.com

Alan Gutierrez

未讀,
2012年7月3日 下午4:01:132012/7/3
收件者:nod...@googlegroups.com
On 7/3/12 3:51 PM, Joshua Holbrook wrote:
> On Tue, Jul 3, 2012 at 12:47 PM, Mark Hahn <ma...@hahnca.com> wrote:
>> Thanks...
>>
>> I guess I'll have to wait until modules I use have been updated for 0.8.
>
> I'd just start patching them, especially if the library's just
> shelling out on the backend. Seems like it wouldn't be too bad. :)

Done.

https://github.com/rsms/node-imagemagick/pull/47

--
Alan Gutierrez - @bigeasy
回覆所有人
回覆作者
轉寄
0 則新訊息