venkat@sun.com (Venkat) (08/31/90)
>How can one build a communication line between the two such that A >dials B, and says: "Hey, I have a new data set for you!" Essentially >program A "presses the read-new-data button" of program B. What would >the notification routine look like, and what kind of signals could I >use to establish the cooperation of the two programs? > >Any suggestions are highly appreciated. >Reiner In Sunview, the Notifier catches signals on behalf of its clients, so you should never use the system call signal. Instead, register your "read new data" function with the notifier to be invoked whenever a SIGUSR1 (or SIGUSR2) signal is received through the call to Notify_func notify_set_signal_func(client, signal_func, signal, when). When your process A completes generating data for process B, it can send SIGUSR1 (or 2) signal to process B the normal way using kill. Hope this helps.. Venkat