funit-exec(8) - Linux man page
Name
funit-exec - Slave program for frysk's JUnit tests
Synopsis
funit-exec [OPTION] {PROGRAM-ARGS}
Description
Wait for a SIGINT (cntrl-c) signal and then exec PROGRAM-ARGS, the first parameter being the executable and the remainder being arguments. Sending a SIGUSR1 signal will cause a random non-main thread to make the exec call.
- -m PID
The PID of the master process that should be sent a signal once this program is running (default 0).
- -s SIGNAL
- The SIGNAL to send to the master process once this program is running (default 0).
- -t TIMEOUT
- Exit after TIMEOUT seconds exit
- -c COUNT
- Create COUNT threads before sending the master TIMEOUT seconds exit
- -e EXECUTABLE
- The EXECUTABLE to exec (default is the first PROGRAM-ARGS parameter).
- PROGRAM-ARGS
- The program and arguments to pass to the exec call.
- This program is used by funit, as part of frysk's JUnit testsuite.
Example
Create a 32-bit process that, on cntrl-c (SIGINT), will exec the 64-bit funit-exit program.
- /usr/lib/frysk/funit-exec \ /usr/lib64/frysk/funit-exec /bin/echo done
- Create a process, with one additional thread, signals the shell with SIGUSR1 once it is running, and then execs /bin/echo but with argument zero set to "arg0".
- /usr/lib/frysk/funit-exec -c 1 -s 1 -p $$ \ -e /bin/echo arg0 arg1
See Also
Bugs
Report bugs to http://sources.redhat.com/frysk/ : http:/sources.redhat.com/frysk.