linux runs infinite loops in 5 minutes, so thats not a huge problem for them.
On 01/11/2011, at 2:05 PM, Andres Perera wrote: > how does linux handle that without going into infinite loops? > > On Mon, Oct 31, 2011 at 6:55 PM, Mikolaj Kucharski > <miko...@kucharski.name> wrote: >> Hi, >> >> Attached archive has small testing scripts to be extracted in /tmp. >> There are 2 tests (exec1 and exec2) with 2 scripts each (4 scripts >> total): >> >> test#1, openbsd: >> $ /tmp/exec1.sh >> exec1.sh executed >> >> test#1, linux: >> # /tmp/exec1.sh >> /tmp/exec1.pl executed >> exec1.sh executed >> >> >> test#2, openbsd: >> $ /tmp/exec2.pl >> /tmp/exec2.pl[3]: use: not found >> /tmp/exec2.pl[4]: use: not found >> /tmp/exec2.pl[6]: syntax error: `(' unexpected >> >> test#2, linux: >> # /tmp/exec2.pl >> exec2.sh executed >> exec2.sh executed >> exec2.sh executed >> ^C >> >> >> What I see is that OpenBSD doesn't support scripts in shebang line and >> executes /bin/sh instead. Am I correct here? >> >> >> PS. Please CC me in replies. Thanks. >> >> -- >> best regards >> q# >> >> [demime 1.01d removed an attachment of type application/x-tar-gz]