Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Digital Unix - rexec() problems
@ 1998-02-04  5:00 Anita Hegerlend
  1998-02-08  5:00 ` John Hascall
  0 siblings, 1 reply; 2+ messages in thread
From: Anita Hegerlend @ 1998-02-04  5:00 UTC (permalink / raw)



Hi,

I'm writing a program that executes other programs on a number of
machines in the net. For that purpose I use the rexec() call that
reports a socket descriptor from that I can read the outputs of the
remotely started program and close the descriptor afterwards. In case
that a machine cannot be reached, e.g. is switched off, the respective
socket descriptor "gets lost" because a -1 (and no descriptor) is
reported in order to report a problem. The outputs of the function
(which is called within a pthread) show, that a descriptor that could
have been used for testing the existence of an unreacheable host is
not used anymore. Because there are other parts of the software coming
from other developers who can read and write files at any time I am
not able to close a descriptor on suspect. The problem is critical
because I loose about 1000 descriptors per day and UNIX has only about
4000 descriptors at most in stock for a process. This resolves in a
crash every 4 days and the program is intended to run over weeks.

Has anyone had this problem before? Are there any patches for that? An
alternative would be to create a separate process but that results in
lower performance but the system would clean up.

Cheers
Anita




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-02-08  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-02-04  5:00 Digital Unix - rexec() problems Anita Hegerlend
1998-02-08  5:00 ` John Hascall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox