Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - mkifs "cannot fork": (3 Items)
   
mkifs "cannot fork"  
The release not for 6.3.2 mentions:

========================
iff you're in a directory on a remote machine, and you pipe the output of a command to xargs, and you redirect the 
output to a file, you get a “cannot fork” error. For example:

cd /net/remote_machine/tmp
find . -type f | xargs grep FAIL > report.txt
/bin/sh: cannot fork - try again
    
It seems to be a problem with permissions. Piping the output of xargs to less works. (Ref# 29834) 

============================================

I have the same problem when using mkifs:

cd /net/...
mkifs qnxbasesmp.build >whatever

I get:

sh: cannot fork - try again
Unable to link relocatable elf file /usr/qnx630/target/qnx6/x86/boot/sys/startup-bios

Re: mkifs "cannot fork"  
Yup, it's the same problem: spawning/forking with a fd's open to a mixture
of machines is screwing up somewhere.

	Brian

On Thu, Jan 10, 2008 at 08:14:46PM -0500, Mario Charest wrote:
> The release not for 6.3.2 mentions:
> 
> ========================
> iff you're in a directory on a remote machine, and you pipe the output of
a command to xargs, and you redirect the output to a file, you get a
???cannot fork??? error. For example:
> 
> cd /net/remote_machine/tmp
> find . -type f | xargs grep FAIL > report.txt
> /bin/sh: cannot fork - try again
>     
> It seems to be a problem with permissions. Piping the output of xargs to
less works. (Ref# 29834) 
> 
> ============================================
> 
> I have the same problem when using mkifs:
> 
> cd /net/...
> mkifs qnxbasesmp.build >whatever
> 
> I get:
> 
> sh: cannot fork - try again
> Unable to link relocatable elf file
/usr/qnx630/target/qnx6/x86/boot/sys/startup-bios
> 
> 
> 
> _______________________________________________
> OSTech
> http://community.qnx.com/sf/go/post4202

-- 
Brian Stecher (bstecher@qnx.com)        QNX Software Systems
phone: +1 (613) 591-0931 (voice)        175 Terence Matthews Cr.
       +1 (613) 591-3579 (fax)          Kanata, Ontario, Canada K2M 1W8
Re: mkifs "cannot fork"  
> Yup, it's the same problem: spawning/forking with a fd's open to a mixture
> of machines is screwing up somewhere.

I've added this to the release notes as a more general description of the problem. Thanks.

Steve Reid (stever@qnx.com)
Technical Editor
QNX Software Systems