home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!axion!spuddy!sweh
- From: sweh@spuddy.uucp (Stephen Harris)
- Newsgroups: comp.unix.wizards
- Subject: Alternatives to ptys and fifos
- Message-ID: <1992Jul26.195219.6143@spuddy.uucp>
- Date: 26 Jul 92 19:52:19 GMT
- Organization: Spuddy's Public Usenet Domain
- Lines: 31
-
- Hiya all!
- Basically, I am trying to write a daemon that alls a program such as lpd
- write to a file, and the daemon takes the data and sends it to a host/port.
- [In this case, the host/port is a terminal server with a printer attached].
- That allows normal usaged of printcap etc.
- The program is being written on SunOs 4.1.1
-
- My problem is this:
- If I use pty's, if the write end to the pty is closed, and the read end
- (bah, master, slave, whatever!) hasn't read the whole pty buffer, then
- SunOS cleans the buffer after a certain timeout.
- I got this from one of the engineers at Sun UK.
-
- Since I can't gaurantee the printer won't go offline, their could be a stage
- when this happens.
-
- OK, forget ptys, and use fifo pipe. After all, I only need worry about
- process->network, and not twoway comms :-).
- Next problem: kernel is limited to 10 FIFO's open at once! I don't want to
- modify the kernel, because this program could endup running on machines I
- don't have direct control over :-(
-
- So....does anyone have any idea of a third alternative that provides a filename
- the "cat" could write to, and a daemon read from?
-
- Help please! Your answers will be much appreciated!
- --
- Stephen Harris
- sweh@spuddy.uucp ...!uknet!axion!spuddy!sweh
-
- * Meeeeow ! Call Spud the Cat on > +44 203 638780 < for free Usenet access *
-