in reply to Re: Unexplainable Client/Server trouble
in thread Unexplainable Client/Server trouble

I've run test from the client side of the connection - the failure in execution stops between two lines ... one of which seems to be executed, the second of which doesn't. The two lines are syswrite and sysread. The write apparently goes through and the server reacts, however when the read is called the script dies - even when run with something like sysread(...) || print "im dying"; The script doesn't output the I'm dying. I've examined $! and the return code of the sysread and both are empty strings. I do not know what else I can do to debug this so hopefully someone will have an idea. Sorry for the hundred posts.

-Adam Stanley
Nethosters, Inc.
  • Comment on Re: Re: Unexplainable Client/Server trouble

Replies are listed 'Best First'.
(tye)Re2: Unexplainable Client/Server trouble
by tye (Sage) on Apr 03, 2001 at 02:51 UTC

    Writing to a pipe that has no readers can generate a SIGPIPE signal which will kill your program. You can prevent this with $SIG{PIPE}= 'IGNORE'; and then syswrite will return undef and $! will be "broken pipe".

            - tye (but my friends call me "Tye")