]> sourceware.org Git - systemtap.git/commit
Handle logfile paths that end in '|', treat it as a command to read data from.
authorDavid Smith <dsmith@redhat.com>
Mon, 4 Apr 2011 16:30:26 +0000 (11:30 -0500)
committerDavid Smith <dsmith@redhat.com>
Mon, 4 Apr 2011 16:30:26 +0000 (11:30 -0500)
commite6460e9558f6bc0c77c2578722c9a83849baa2e1
tree8478583346c7c10beec585672819db903e7d73c1
parentbf8e91d010e33a460d178b287caf483ed33b07b7
Handle logfile paths that end in '|', treat it as a command to read data from.

* pcp/src/pmdas/logger/util.c: New file.
* pcp/src/pmdas/logger/util.h: Ditto.
* pcp/src/pmdas/logger/event.c (event_init): Handle opening pipe "paths".
  (event_shutdown): New function that stops piped processes and closes all
  files.
* pcp/src/pmdas/logger/event.h: Added event_shutdown() prototype.
* pcp/src/pmdas/logger/logger.c (read_config): Moved lstrip/rstrip code to
  util.c.
  (main): Calls event_shutdown() after pmdaMain() returns to clean
  everything up.
* pcp/src/pmdas/logger/GNUmakefile.in: Added util.c and util.h.
* pcp/src/pmdas/logger/Install: Support entering pipe "paths".
pcp/src/pmdas/logger/GNUmakefile.in
pcp/src/pmdas/logger/Install
pcp/src/pmdas/logger/event.c
pcp/src/pmdas/logger/event.h
pcp/src/pmdas/logger/logger.c
pcp/src/pmdas/logger/util.c [new file with mode: 0644]
pcp/src/pmdas/logger/util.h [new file with mode: 0644]
This page took 0.027354 seconds and 5 git commands to generate.