This is the mail archive of the
systemtap-cvs@sourceware.org
mailing list for the systemtap project.
src/runtime/staprun ChangeLog cap.c common.c m ...
- From: hunt at sourceware dot org
- To: systemtap-cvs at sourceware dot org
- Date: 25 Jul 2007 14:13:07 -0000
- Subject: src/runtime/staprun ChangeLog cap.c common.c m ...
CVSROOT: /cvs/systemtap
Module name: src
Branch: setuid-branch
Changes by: hunt@sourceware.org 2007-07-25 14:13:06
Modified files:
runtime/staprun: ChangeLog cap.c common.c mainloop.c stapio.c
staprun.c staprun.h staprun_funcs.c symbols.c
Log message:
2007-07-25 Martin Hunt <hunt@redhat.com>
* staprun.c (init_staprun): If insmod, then set inserted_module.
(cleanup): Only try to remove module when appropriate.
(exit_cleanup): New. Calls cleanup().
(main): Set atexit(exit_cleanup) so cleanup always gets called
and modules get removed.
* symbols.c: Call cleanup_and_exit(1) instead of 0.
* stapio.c: Remove some duplicate declarations.
(main): Call init_stapio instead of init_staprun.
* mainloop.c (start_cmd): exit 1 instead of -1.
(system_cmd): Ditto.
(init_staprun): Renamed init_stapio.
(cleanup_and_exit): Set exit status.
(_stp_main_loop): Call cleanup_and_exit() with proper status.
* common.c: Remove some duplicate declarations.
(path_parse_modname): Malloc modname buffer.
(fatal_handler): Set exit code based on if initialization completed.
* cap.c (print_cap): Don't exit on failures here.
ALL: Use ferror and perror to simplify error printing and handling.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/staprun/ChangeLog.diff?cvsroot=systemtap&only_with_tag=setuid-branch&r1=1.25.2.21&r2=1.25.2.22
http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/staprun/cap.c.diff?cvsroot=systemtap&only_with_tag=setuid-branch&r1=1.1.2.2&r2=1.1.2.3
http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/staprun/common.c.diff?cvsroot=systemtap&only_with_tag=setuid-branch&r1=1.1.2.6&r2=1.1.2.7
http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/staprun/mainloop.c.diff?cvsroot=systemtap&only_with_tag=setuid-branch&r1=1.11.2.5&r2=1.11.2.6
http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/staprun/stapio.c.diff?cvsroot=systemtap&only_with_tag=setuid-branch&r1=1.1.2.4&r2=1.1.2.5
http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/staprun/staprun.c.diff?cvsroot=systemtap&only_with_tag=setuid-branch&r1=1.3.2.16&r2=1.3.2.17
http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/staprun/staprun.h.diff?cvsroot=systemtap&only_with_tag=setuid-branch&r1=1.6.2.6&r2=1.6.2.7
http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/staprun/staprun_funcs.c.diff?cvsroot=systemtap&only_with_tag=setuid-branch&r1=1.1.2.6&r2=1.1.2.7
http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/staprun/symbols.c.diff?cvsroot=systemtap&only_with_tag=setuid-branch&r1=1.5.2.1&r2=1.5.2.2