[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

fork vs posix_spawn

From: Barath Aron
Subject: fork vs posix_spawn
Date: Wed, 8 Aug 2018 09:49:13 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1


I successfully cross-compiled the findutils 4.6.0 to Threos ( see: https://threos.io ). Sadly, I had to apply some patches, namely: additional guard around an unused stack variable (see the submitted patch), and two fork-related patches (replacing "fork()" with "-1", because Threos does not support fork). Since the forks are gone, xargs is now pointless, and find -exec is also out of order. My question is: It is possible to implement the process creation (fork+exec) with posix_spawn? If yes or you are opened for this, I can help with a prototype implementation. The GNU make successfully adopted posix_spawn.

In some cases, find and xargs can be more efficient, see:


reply via email to

[Prev in Thread] Current Thread [Next in Thread]