Comments (3)
From a glance, it looks like another reference counting issue.
increases the refcount here luv_functions.c line 1367
But on killing the process with uv.process_kill it doesn't decrease the refcount.
After killing a process, you have to explicitly close the handle with uv.close in
https://github.com/clementfarabet/async/blob/master/async/process.lua line 24
I think that might fix it.
from async.
You can't close it directly after, you need to wait for the onexit
event, and then close it, which is how I'm doing it right now. I also close the stdin, stdout, and stderr.
from async.
Ah OK. Then maybe check if onexit is getting generated when kill is called?
What about a test where you don't kill the process and it finished cleanly.
Does it leak then as well?
On Feb 14, 2014 9:44 AM, "Clement Farabet" [email protected] wrote:
You can't close it directly after, you need to wait for the onexit event,
and then close it, which is how I'm doing it right now. I also close the
stdin, stdout, and stderr.Reply to this email directly or view it on GitHubhttps://github.com//issues/12#issuecomment-35054280
.
from async.
Related Issues (20)
- read_start bug in luv HOT 3
- fails to install when luajit is installed in a non-standard location HOT 3
- problem installing async in os x
- example tcp server on node.js side HOT 2
- Not working with python requests library HOT 3
- Can't read from python TCP server HOT 1
- setting timeout triggers assertion error
- unknown object' error in the 'readObject' function while loading .net file in TORCH HOT 3
- Mac OS X 10.9 install error: 'GetCurrentProcess' is deprecated
- ipv6 HOT 2
- How to make a loop calll curl.get? HOT 1
- penlight dependency
- how to enable cors?
- async does not accept some valid formats in multipart/form-data request.
- bugs when building on windows
- Buld on Ubuntu 17.10 fails HOT 1
- Auto compile is breaking duw to FALLTHROUGH HOT 5
- http server seems to ignore incoming body (checked for POST) HOT 8
- memory leaks HOT 32
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from async.