From: David A. <dav...@gm...> - 2011-08-12 18:36:14
|
I want to create a Linux daemon program written in C that invokes a Rexx script. This means the script process will be running in the background without a terminal interface or any normal SYSIN, SYSOUT, or SYSERR file handles available (I will be redirecting SYSOUT and SYSERR to a log file). My question is what happens when I perform a kill -9 operation on the process and how can I intercept that action in the ooRexx script to ensure the program shuts down gracefully? Will a CALL ON HALT statement catch this kind of action? And do I need to enable any other signal handling in the C part of the program? I am asking this because I am unsure if ooRexx will act differently in this kind of environment than it would as a foreground process. I just want to make sure I am not boxing myself into a corner here. -- David Ashley ooRexx Development Team |