Ruby fork from C program

B

barjunk

As a learning exercise I'm goofing around with ruby's fork within a C
program.

I've posted my current testing code here: http://pastie.org/591998

It seems to give me the output I was expecting however, it waits the
entire 10 seconds before it proceeds to the next fork call.

I thought maybe sleep is somehow blocking or there are likely other
things I don't really understand.

Can anyone give me any ideas?

I'm using ruby 1.9.

The goal is to launch ruby processes from this C program.

Thanks for any help you might provide.

Mike B.
 
M

Mike Barsalou

As a learning exercise I'm goofing around with ruby's fork within a C
program.

I've posted my current testing code here:http://pastie.org/591998

It seems to give me the output I was expecting however, it waits the
entire 10 seconds before it proceeds to the next fork call.

I thought maybe sleep is somehow blocking or there are likely other
things I don't really understand.

Can anyone give me any ideas?

I'm using ruby 1.9.

The goal is to launch ruby processes from this C program.

Thanks for any help you might provide.

Mike B.

Can anyone provide any help on this little snippet? Maybe it's just
wrong.

Mike B.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,270
Latest member
TopCryptoTwitterChannels_

Latest Threads

Top