mhonarc-commits
[Top] [All Lists]

CVS: devtools/bin logcmd,1.1,1.2

2002-10-30 23:20:55
Update of /cvsroot/mhonarc/devtools/bin
In directory subversions:/tmp/cvs-serv16809

Modified Files:
	logcmd 
Log Message:
Sync with mharc version.


Index: logcmd
===================================================================
RCS file: /cvsroot/mhonarc/devtools/bin/logcmd,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** logcmd	31 Jul 2002 04:25:02 -0000	1.1
--- logcmd	31 Oct 2002 06:20:46 -0000	1.2
***************
*** 67,73 ****
    if ($child_pid) {   # parent
      {
!       local @SIG{'PIPE','CHLD','TERM','INT'} = (sub {
  	log_line($our_name, $$, "Caught signal: SIG$_[0]\n");
!       }) x 4;
  
        while (<CMD>) {
--- 67,73 ----
    if ($child_pid) {   # parent
      {
!       local @SIG{'PIPE','TERM','INT'} = (sub {
  	log_line($our_name, $$, "Caught signal: SIG$_[0]\n");
!       }) x 3;
  
        while (<CMD>) {
***************
*** 160,166 ****
  =head1 DESCRIPTION
  
! B<logcmd> can be used to log the output of a program.  This program
! is useful for logging program output for programs that do not have
! a built-in logging facility.
  
  Typical usage is to use B<logcmd> in crontabs to log any command
--- 160,166 ----
  =head1 DESCRIPTION
  
! B<logcmd> logs the output of a program.  This program is useful
! for logging program output for programs that do not have a built-in
! logging facility.
  
  Typical usage is to use B<logcmd> in crontabs to log any command
***************
*** 243,251 ****
  B<logcmd> performs no file locking on the log file specified.  To help
  minimize that a single output line to the log does not get broken up
! due to multiple parallel process writing to the file, the entire line
! is dumped in a single call to Perl's C<print> operator.  Therefore,
! the probability of a line being broken is dependent on the atomicity
! of Perl's C<print> operator and how many commands you choose to
! run in parallel with output logged to the same file.
  
  =back
--- 243,248 ----
  B<logcmd> performs no file locking on the log file specified.  To help
  minimize that a single output line to the log does not get broken up
! due to multiple writers, the entire line is dumped in a single call
! to Perl's C<print> operator.
  
  =back

---------------------------------------------------------------------
To sign-off this list, send email to majordomo(_at_)mhonarc(_dot_)org with the
message text UNSUBSCRIBE MHONARC-DEV