"sleep" problems

I am running QNX 4.25G with TCP/IP 5.0.

I am experiencing an odd problem.

Occasionally, a shell script with the command “sleep 2” hangs indefinately.

I find that I can telnet in to the system and type “sleep 1” at the $ prompt
and sometimes it works, sometimes it doesn’t.

If I restart tcp/ip, the problem seems to go away for a while.

Any help would be appreciated.

Jeff.

I would bet that there is a higher priority process that’s spinning its
wheels somewhere, preempting the sleeping process. I had a similar issue
last week, where a make command hung. It turned out that wcc386 was trying
to run at priority 9, and sendmail for some reason was using up all of the
CPU time at priority 10.

When you telnet in, do a sin time a few times, to see if there is a process
at a higher priority eating up the CPU.

“Jeffrey Adler” <jeffadler.at.bigfoot.dot.com@nowhere.com> wrote in message
news:csclfn$cgf$1@inn.qnx.com

I am running QNX 4.25G with TCP/IP 5.0.

I am experiencing an odd problem.

Occasionally, a shell script with the command “sleep 2” hangs
indefinately.

I find that I can telnet in to the system and type “sleep 1” at the $
prompt and sometimes it works, sometimes it doesn’t.

If I restart tcp/ip, the problem seems to go away for a while.

Any help would be appreciated.

Jeff.

No, thats not it. I can telnet in to 4 different consoles and 1 will sleep
and return and the other 3 sleep will wait indefinately (until Ctrl-C).
Other commands seem to work OK. When I do a sin, there is nothing showing
READY.

Any other ideas???

Thanks,

Jeff.


“Kevin Miller” <kevin.miller@transcore.com> wrote in message
news:csgikl$98g$1@inn.qnx.com

I would bet that there is a higher priority process that’s spinning its
wheels somewhere, preempting the sleeping process. I had a similar issue
last week, where a make command hung. It turned out that wcc386 was trying
to run at priority 9, and sendmail for some reason was using up all of the
CPU time at priority 10.

When you telnet in, do a sin time a few times, to see if there is a
process at a higher priority eating up the CPU.

“Jeffrey Adler” <> jeffadler.at.bigfoot.dot.com@nowhere.com> > wrote in
message news:csclfn$cgf$> 1@inn.qnx.com> …
I am running QNX 4.25G with TCP/IP 5.0.

I am experiencing an odd problem.

Occasionally, a shell script with the command “sleep 2” hangs
indefinately.

I find that I can telnet in to the system and type “sleep 1” at the $
prompt and sometimes it works, sometimes it doesn’t.

If I restart tcp/ip, the problem seems to go away for a while.

Any help would be appreciated.

Jeff.