From: Zouplaz Date: 2009-03-16T04:32:42+09:00 Subject: execle ruby process from C ? Hello, I'm playing with a small http server written in C & Ruby CGI and there is something wrong if(execle("/usr/bin/ruby", "/usr/bin/ruby" " test.rb", NULL, NULL) == -1) { wlog("error execle"); exit(EXIT_FAILURE); } - the C program did a chdir to the directory where test.rb can be found. - ps ae gives 18133 pts/5 S+ 0:00 /usr/bin/ruby test.rb test.rb contains just one line -> print "hello" But when execle, ruby never returns... I mean, the server can be interrupted with a CONTROL/C and gives /usr/bin/ruby test.rb: Interrupt I don't understand why... I have to say that stdout and stdin are redirected to pipes - I tried with some unix executables like 'ls' and it works What is the difference with ruby executable ? Thanks