Register this process as an interactive one.
Register this process as an interactive one.Sets the PID of the interactive process for the supplied terminal. This is used internally to send signals to the process which is currently handling a user's input. This function is called internally by mod_init(). In certain unusual cases, it may be necessary to re-register an interactive process without calling mod_init() (for instance, after a child interactive process has just terminated).