I am porting a software module from Irix to Linux. It uses the rexec-function to start up remote processes.
The rexec man page says the following:
Quote:
int rexec(char **ahost, int inport, char *user, char *passwd, char *cmd, int *fd2p);
If fd2p is non-zero, then an auxiliary channel to a control process will be setup, and a descriptor for it will be placed in *fd2p. The control process will return diagnostic output from the command (unit 2) on this channel, and will also accept bytes on this channel as being UNIX signal numbers, to be forwarded to the process group of the command.
|
It seems the part about sending bytes through fd2p and them being forwarded to the remote process as unix signals does not work.
Have anyone succesfully made this work on Linux?
e.g:
- start a process via rexec()
- sending a signal, let's say SIGTERM, to the remote process and have this process terminate gracefully?
PS: I know rexec is bad for security, but that's not really an issue in this case