Newsgroups: comp.lang.perl
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!csn!boulder!spot.Colorado.EDU!frechett
From: frechett@spot.Colorado.EDU (-=Runaway Daemon=-)
Subject: Re: chat2.pl with select(), and a tiny shell "interact"-like test harness
Message-ID: <1991May29.045434.12039@colorado.edu>
Sender: news@colorado.edu (The Daily Planet)
Nntp-Posting-Host: spot.colorado.edu
Organization: University of Colorado, Boulder
References: <1991May28.221547.7540@iWarp.intel.com>
Date: Wed, 29 May 1991 04:54:34 GMT
Lines: 32


Ack.. I hate ULTRIX.. I have a bit of a problem.. I unpacked the latest
chat2.pl and select.pl and after giving it my include dir and all. ..
When I execute select.pl I get
I made it here.. 
Segmentation fault (core dumped)

I made it here is right before the call to open_proc.... 
I then put a comment in open_proc that should be printed when it 
gets there..  It isn't. As far as I can tell, it dumps core just because it 
tries to use a procedure from chat2.pl.   Of course this is really anoying 
because it works on our Sparc just fine.. although it does give me a 
periodic string of {timeout}'s.  So does anyone know what the difference
here is? 

And now on the next problem.. I have written a server. It is up to 260 
lines or so in a day.. It allows people to browse through a specific 
set of directories, namely my hp48sx archives and look at files..
Eventually I will have it allow people to queue up files for mailing
but I have found a small bug (ok one of a few small bugs ;) that is 
Annoying me.  If at any point someone presses ^C it locks up..  If they
remain on he line it kills the server.. and if they leave it goes 
back to normal operation (leave as in just hang up).  I can't seem to 
trap the ^C in normal reading and when I try to do something with 
SIG{'INT'} it only effects what happens when I cook the server from 
where I started it.. What does ^C do to my main while loop and what 
can be done to trap it and get rid of it?

	ian

-=Runaway Daemon=-

