Overview
| Artifact ID: | 402448246c500bf1697e563bac12b6112850f0c7 |
|---|---|
| Ticket: | 1958930fffffffffffffffffffffffffffffffff
exec with pipes and fileevents leaks ~2Mb everytime |
| User & Date: | ferrieux on 2008-05-07 13:34:51 |
Changes
- icomment:
Logged In: YES user_id=496139 Originator: NO David, while I agree with you that [update] is dangerous here in that potentially it will only superficially skim the event queue, I don't understand the 2M leak yet. Closing from within a callback or not doesn't change much from the notifier's PoV... Moreover, in this specific case, the EOF will never happen since the other side of the $out pipe stays open in the parent. To fix that I'd suggest closing $out_w and $in_r immediately after the [exec &]. Continuing investigations...
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"