sockets and SIGINTs?

Anne Becker anne at cvl.umd.edu
Wed Mar 1 11:06:49 AEST 1989


First, I suppose I had better provide some background:  I am working on a
SunView tool under 3.4 on some 3/50s, a 3/160 and a 3/260. The proram
itself is a server, which receives its commands over a socket.  Right now
I am using UNIX domain sockets.  I REALLY do not want to go over to using
internet sockets unless there is absolutely no way of solving my problem.

The problem:  Due to what I understand to be a bug in the socket code, If
a ^C is sent to the server at an inappropriate time, i.e. when a socket is
connected, the entire Sun goes into rigor mortis. (At least, it appears
that this is when it happens.)  It also will halt if, while the socket is
open, I go up to the menu and select "quit."

I would like to know if simply ignoring ^C will actually stop this
"feature" from bringing our file server to its knees. If it will, I would
also like to request some pointers to the standard procedure for doing
this, since at this point, I don't have much experience in the area of
trapping signals.  I would very much appreciate any help from any of you
who are wise in the ways of Suns.

[[ You can inhibit ^C interrupts with the "signal" function.  Read the
manual page "signal(3)".  But I don't guarantee that that will prevent
system crashes.  Your best bet is probably to switch over to using
Internet sockets.  It's not that bad....really!  (Note:  "signal() is a
simplified interface to the more general sigvec(2) facility.")  --wnl ]]

	Thanks in advance,
	Anne Becker
	arpa: anne at cvl.umd.edu 
	uucp: uunet!mimsy!cvl!anne



More information about the Comp.sys.sun mailing list