Re: is popen thread safe?
- From: Max Kellermann <max duempel org>
- To: frederico schardong <frede sch gmail com>
- Cc: gtk-list <gtk-list gnome org>
- Subject: Re: is popen thread safe?
- Date: Thu, 6 May 2010 22:10:34 +0200
On 2010/05/06 21:51, frederico schardong <frede sch gmail com> wrote:
> I'm trying to add the popen in a thread (using g_thread_create()) but
> it keep frozen my application. So, is popen thread safe? there is
> another simple alternative if it isn't?
popen() is not thread safe, unless you use the GNU specific option "e"
for enabling close-on-exec. But that causes just fd leaks, and is
probably unrelated to a possible freeze (unless the sub process drains
the fd).
Max
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]