passing signal numbers via rexecd
Sandeep Mehta
sxm at philabs.philips.com
Fri Feb 16 09:03:45 AEST 1990
According to the documentation on rexec(), when a non-zero value is used
as the (last) argument then an auxiliary channel (simply, a socket
descriptor) is set up between the master and the control process of the
slave. the control process is supposed to accept signal numbers (as bytes
written to it) which are passed onto the process group of the command
invoked by in.rexecd.
I can get rexec to behave as described in all the other aspects (i.e., I/O
using the default and auxiliary channels (sockets)) except using signals
to control it via the aux channel. the only other option is to use OOB
data (which according to TFM, *may* work).
the synopsis of rexec is as follows:
sd = rexec (char **host, u_short port, char *user, char *passwd,
char *cmd, int *fd2p)
sd is the SOCK_STREAM channel
fd2p is the auxiliary channel.
port is (getservbyname("exec","tcp"))->s_port
Has anyone gotten this feature of rexec working. any clues or code frags
welcome.
sxm at philabs.philips.com ...to be or not to bop ?
More information about the Comp.sys.sun
mailing list