Home > Archive > Tcl > May 2007 > Re: Expect - failed to write error - 6 lines of code
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: Expect - failed to write error - 6 lines of code
|
|
| Alexandre Ferrieux 2007-05-26, 8:07 am |
| On May 25, 9:18 pm, Skip Gracely <s...@hotmail.com> wrote:
> "write() failed to write anything - will sleep(1) and retry..."
> I'm running expect version 5.43.0 on Ubuntu 6.10 on a
> 2.6.17-11-generic linux kernel.
Since you're on linux, use strace -f, you'll see the offending
write().
Then you'll be able to investigate why it is blocking or failing in a
retryable manner. Post back the strace output if you wish.
-Alex
| |
| Darren New 2007-05-27, 10:17 pm |
| Donal K. Fellows wrote:
> Looks like it; writing zero-length buffers can cause some other problems
FWIW, way back when, writing a zero-length buffer was the defined way of
truncating a file at the current s position. Kind of a kludge until
other APIs got implemented.
--
Darren New / San Diego, CA, USA (PST)
His kernel fu is strong.
He studied at the Shao Linux Temple.
|
|
|
|
|