Hi all

Could I make a request for a hook that gets called when a chat script
finishes or fails? I would also like to get the return code of the script
passed as an argument.

I see execl() is called on line 1663 in main.c (ppp-2.3.11) and a waitpid()
on line 1673. All that is needed then is to evaluate WIFEXITED(), get the
return code using WEXITSTATUS() and call the hook somewhere near line 1674.

BTW, Paul, thank you very much for such a wonderful, well-written piece of
software. The code is a joy to browse around in.

Regards
-- 
------------------
Sarel Botha
[EMAIL PROTECTED]
------------------

99 little bugs in the code, 99 bugs in the code,
          fix one bug, compile it again...
          101 little bugs in the code....


-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]

Reply via email to