Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc/root Teach the hup alias to deal with sendmail's pid file



details:   https://anonhg.NetBSD.org/src/rev/949b937b213d
branches:  trunk
changeset: 504405:949b937b213d
user:      atatat <atatat%NetBSD.org@localhost>
date:      Thu Mar 01 22:26:57 2001 +0000

description:
Teach the hup alias to deal with sendmail's pid file

diffstat:

 etc/root/dot.cshrc |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r ad3f6fc72dbc -r 949b937b213d etc/root/dot.cshrc
--- a/etc/root/dot.cshrc        Thu Mar 01 22:10:57 2001 +0000
+++ b/etc/root/dot.cshrc        Thu Mar 01 22:26:57 2001 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: dot.cshrc,v 1.11 2000/05/06 13:17:33 frueauf Exp $
+#      $NetBSD: dot.cshrc,v 1.12 2001/03/01 22:26:57 atatat Exp $
 
 set history=1000
 set path=(/sbin /usr/sbin /bin /usr/bin /usr/pkg/sbin /usr/pkg/bin /usr/X11R6/bin /usr/local/sbin /usr/local/bin)
@@ -9,7 +9,7 @@
 setenv BLOCKSIZE 1k
 
 alias  h       history
-alias  hup     'kill -HUP `cat /var/run/\!$.pid`'
+alias  hup     '( set pid=$< ; kill -HUP $pid ) < /var/run/\!$.pid'
 alias  j       jobs -l
 alias  ll      ls -l
 



Home | Main Index | Thread Index | Old Index