Bug 33635

Summary: fantasy '-s' option in exports(5) and kill(1)
Product: Documentation Reporter: rdm <rdm>
Component: Books & ArticlesAssignee: freebsd-doc (Nobody) <doc>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description rdm 2002-01-07 07:10:03 UTC
        The exports(5) and kill(1) manual pages say that one can
        use the '-s' option to send named signals to a process, as:

          kill -s HUP `cat /var/run/mountd.pid`

        The kill command, however, does not accept this option:

	  s: Unknown signal; kill -l lists signals.

Fix: 

Either implement the feature or remove the fantasy option
        from the man pages...
How-To-Repeat: 
        kill -s HUP ...
Comment 1 greid freebsd_committer freebsd_triage 2002-01-07 12:49:51 UTC
State Changed
From-To: open->closed

Pilot error.  You are using the builtin kill in csh.  From kill(1): 

Some shells may provide a builtin kill command which is similar or iden- 
tical to this utility.  Consult the builtin(1) manual page. 

Calling kill as /bin/kill from a csh shell/script will let you use -s.
Comment 2 nik freebsd_committer freebsd_triage 2002-01-07 13:05:28 UTC
On Sun, Jan 06, 2002 at 11:03:20PM -0800, Rich Morin wrote:
> >Description:
> 
>         The exports(5) and kill(1) manual pages say that one can
>         use the '-s' option to send named signals to a process, as:
> 
>           kill -s HUP `cat /var/run/mountd.pid`
> 
>         The kill command, however, does not accept this option:
> 
> 	  s: Unknown signal; kill -l lists signals.


You're using your shell's built in kill. . .

    # ps -ax | grep inetd
    194  ??  Is     0:00.05 inetd -wW

    # kill -s HUP 194
    s: Unkown signal; kill -l lists signals.

    # which kill
    kill: shell built-in command

    # /bin/kill -s HUP 194
    
N
-- 
FreeBSD: The Power to Serve             http://www.freebsd.org/
FreeBSD Documentation Project           http://www.freebsd.org/docproj/

          --- 15B8 3FFC DDB4 34B0 AA5F  94B7 93A8 0764 2C37 E375 ---