From owner-freebsd-stable Mon Jul 16 13:36:15 2001 Delivered-To: freebsd-stable@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id 558F437B401 for ; Mon, 16 Jul 2001 13:35:58 -0700 (PDT) (envelope-from ben@FreeBSD.org) Received: from strontium.shef.vinosystems.com ([192.168.91.36] ident=ben) by scientia.demon.co.uk with smtp (Exim 3.30 #1) id 15MF5v-0005Qd-00; Mon, 16 Jul 2001 21:35:55 +0100 Date: Mon, 16 Jul 2001 21:35:55 +0100 From: Ben Smithurst To: Nuno Teixeira Cc: Charles Clark , freebsd-stable@freebsd.org Subject: Re: kill list signals - newsyslog (newbie question) Message-ID: <20010716213555.E36238@strontium.shef.vinosystems.com> References: <20010716014943.3AA1428554@maniac.deathstar.org> <20010716212321.B417-100000@> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="0OAP2g/MAC+5xKAE" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010716212321.B417-100000@> Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --0OAP2g/MAC+5xKAE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable your PGP signature failed to verify, btw. Nuno Teixeira wrote: > su -l to root with csh shell: >=20 > # kill -l > HUP INT QUIT ILL TRAP ABRT EMT FPE KILL BUS SEGV SYS PIPE ALRM TERM URG > STOP TSTP CONT CHLD TTIN TTOU IO XCPU XFSZ VTALRM PROF WINCH INFO USR1 US= R2 >=20 > and my normal login with a bash shell: >=20 > [admin@ admin]$ kill -l > 1) SIGHUP 2) SIGINT 3) SIGQUIT 4) SIGILL > 5) SIGTRAP 6) SIGABRT 7) SIGEMT 8) SIGFPE > 9) SIGKILL 10) SIGBUS 11) SIGSEGV 12) SIGSYS > 13) SIGPIPE 14) SIGALRM 15) SIGTERM 16) SIGURG > 17) SIGSTOP 18) SIGTSTP 19) SIGCONT 20) SIGCHLD > 21) SIGTTIN 22) SIGTTOU 23) SIGIO 24) SIGXCPU > 25) SIGXFSZ 26) SIGVTALRM 27) SIGPROF 28) SIGWINCH > 29) SIGINFO 30) SIGUSR1 31) SIGUSR2 >=20 > Why it works like that? Because the "kill" command is builtin to some shells (including bash and csh) and their versions of "kill" treat the "-l" flag differently. If you ran the external "/bin/kill -l" command the result would be the same regardless of the shell, but since these shells have their own "kill" function you're not running the /bin/kill program normally. --=20 Ben Smithurst / ben@FreeBSD.org --0OAP2g/MAC+5xKAE Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7U1ApbPzJ+yzvRCwRAhGZAJoDGKQTGJWn/uUmiqiym7dPiGDkTQCgg0lC 7hskRDkauSaGUo8f44pv4oQ= =Norh -----END PGP SIGNATURE----- --0OAP2g/MAC+5xKAE-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message