From: John Byrne <john.l.byrne@hp...> - 2003-03-27 00:26:55
Bruce has asked that I publish the proposed interface for removing a
pre-defined SIGCLUSTER from our kernels.(Which causes problems with
int cluster_events_register_signal(int desired_fd, int signum)
This function will open "/proc/cluster/events" and return the
descriptor. -1 will be set on error and errno will be set. Using fcntls
(F_SETOWN, F_SETSIG, F_SETFL), the descriptor will be used to send the
signal <signum> to the process that called the function whenever a
cluster transition occurs. The descriptor will also be set to be
close-on-exec and the O_NONBLOCK flag will be set on it. <desired_fd>
can be used to specify a specific fd that should be used (this is for
init); it should be set to -1 if you don't care.
Currently the file descriptor returned will not be able to beread or
written. It is simply providing a hook to signal specific processes when
a cluster transition occurs. In the future, it is planned that it will
be possible to read cluster transition records from this file; for the
moment, the existing cluster transition interfaces in libcluster will
still be need to be used.
Get latest updates about Open Source Projects, Conferences and News.