[uml-user] UML hangs with con=fd:0,fd:1 if stdin is no tty

2011-04-29 Thread Riccardo Murri
Hello, I'm trying to use UML to provide a "standard environment" for computational jobs in a Grid computing setting. So, I launch "linux mem=256M ubd0=apppot0.img con=null con0=fd:0,fd:1 root=/dev/ubda umid=my". The /etc/inittab within the UML machine is set up to run a certain non-interactive s

Re: [uml-user] UML hangs with con=fd:0,fd:1 if stdin is no tty

2011-04-29 Thread richard -rw- weinberger
On Fri, Apr 29, 2011 at 5:14 PM, Riccardo Murri wrote: > Hello, > > I'm trying to use UML to provide a "standard environment" for > computational jobs in a Grid computing setting. > > So, I launch "linux mem=256M ubd0=apppot0.img con=null con0=fd:0,fd:1 > root=/dev/ubda umid=my".  The /etc/inittab

Re: [uml-user] UML hangs with con=fd:0,fd:1 if stdin is no tty

2011-04-29 Thread Riccardo Murri
Hi Richard, On Fri, Apr 29, 2011 at 5:47 PM, richard -rw- weinberger wrote: > Anyway, what is the exact command-line which causes UML to hang? > Can you provide me a stand alone test case? > Here it is: * download the 64-bit kernel: http://uml.devloop.org.uk/kernels/kernel64-2.6.35.7.bz2 *

Re: [uml-user] UML hangs with con=fd:0,fd:1 if stdin is no tty

2011-04-29 Thread richard -rw- weinberger
On Fri, Apr 29, 2011 at 6:10 PM, Riccardo Murri wrote: > Hi Richard, > > On Fri, Apr 29, 2011 at 5:47 PM, richard -rw- weinberger > wrote: >> Anyway, what is the exact command-line which causes UML to hang? >> Can you provide me a stand alone test case? >> > > Here it is: > I fear you cannot use

Re: [uml-user] UML hangs with con=fd:0,fd:1 if stdin is no tty

2011-04-29 Thread Riccardo Murri
On Fri, Apr 29, 2011 at 6:46 PM, richard -rw- weinberger wrote: > I fear you cannot use /dev/null (or any other non-tty file) as stdin. :-( > UML uses poll() to detect whether input is available from stdin. > As you can always read from /dev/null poll() doesn't block and > UML gets flooded with in

Re: [uml-user] UML hangs with con=fd:0,fd:1 if stdin is no tty

2011-04-29 Thread richard -rw- weinberger
On Fri, Apr 29, 2011 at 7:05 PM, Riccardo Murri wrote: > But I can still redirect stdin from a named FIFO and attach a "silent" > process to it: Sure, but you'll still need a wrapper script which creates this FIFO in the grid node. I've had enough fun with sge, lsf, ... ;) -- Thanks, //richard