Re: [PATCH] Improve QNX support in GIT
- From
Mike Gorchak <mike.gorchak.qnx@gmail.com>
- Date
- Feb 26, 2013, 18:54 UTC
- Message-ID
- <CAHXAxrOnRkqFEtYa2DN4FEwzeXpKhLsUx0yvoi59dtOSyEGOQw@mail.gmail.com>
- In-Reply-To
- <20130226172504.GA2271@ftbfs.org>
Show 6 quoted lines
> I don't think it's a good idea to just enable thread support. On QNX, > once a process creates a thread, fork stops working. This breaks > commands that create threads and then try to run other programs, such > as "git fetch" with an https remote. If threads are enabled, I think > that the uses of fork need to be audited and, if they can be called > after a thread is created, fixed.
I did a quick look into the run-command.c and transport-helper.c modules, they use pthread OR fork for external command spawning depending on NO_PTHREAD declaration. Another fork() occurence in the module daemon.c for daemonization and I know that it works.