Article View: comp.protocols.ppp
Article #16should ppp catch SIGPIPE ? (brad?)
From: G. Paul Ziemba
Date: Mon, 10 Aug 1992 19:11
Date: Mon, 10 Aug 1992 19:11
37 lines
1754 bytes
1754 bytes
I've been using ppp *over* rlogin recently, and I encountered a rather interesting situation when the modems hung up by themselves at one point. I'm using the ubiquitous pl6 ppp, although from looking at the code I think that bkc's 1.1 would behave similarly. Here's how I set up the ppp link: home system (home) calls work system using a T3000. Work system 1 (work1) answers. Log in as some user, then run rlogin -E -8 to a system that has ppp installed (work2), and specify a password entry that starts up ppp in server mode. If, for some reason, the modem connection dies, SIGHUP gets sent to the client rlogin running on (work1). This causes the rlogin client to exit. Presumably (I'm speculating from this point on), this will cause SIGPIPE to be sent to the server ppp running on (work2) at some point. From the code, it seems that this signal is currently ignored. In any case, the ppp server on (work2) continues running after the client rlogin has gone away. I propose that the server ppp ought to catch SIGPIPE and interpret it the same way as it currently interprets SIGHUP. Is this a reasonable way to handle the above scenario? Is there any reason ppp should NOT handle SIGPIPE like this always? go ahead, enlighten me :-) ~!paul -- Paul Ziemba paul@alantec.com alantec!paul 408.955.9000 x227 "The artist is not a special kind of man, but every man is a special kind of artist." -- Ananda K. Coomaraswamy
Technical Details
Message-ID:
<paul.713473912@alantec>Path:
arc1-ca.pugleaf.net!sparky!uunet!news.claremont.edu!bridge2!alantec!paulShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!news.claremont.edu!bridge2!alantec!paul From: paul@alantec.com (G. Paul Ziemba) Newsgroups: comp.protocols.ppp Subject: should ppp catch SIGPIPE ? (brad?) Message-ID: <paul.713473912@alantec> Date: 10 Aug 92 19:11:52 GMT Sender: news@alantec.COM Lines: 37