helpThe GNU Bourne-Again SHell - Support: sr #108944, Reject kill when invalid argument...

 
 

sr #108944: Reject kill when invalid argument is found

Submitted by:  None
Submitted on:  Sun 27 Dec 2015 02:52:08 PM UTC  
 
Category: NonePriority: 5 - Normal
Severity: 3 - NormalStatus: Invalid
Privacy: PublicAssigned to: None
Originator Email: -unavailable-Open/Closed: Open
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 28 Dec 2015 03:11:15 PM UTC, comment #1:

This is not a bug. Posix says that kill will attempt to send a signal to each operand, interpreting it as a pid/pgrp or a job specification. If you don't want kill to continue after an error, undefine CONTINUE_AFTER_KILL_ERROR in config-top.h and rebuild bash.

Chet Ramey <chet>
Project Administrator
Sun 27 Dec 2015 02:52:08 PM UTC, original submission:

I strongly suggest kill command not to execute if invalid arguments are found. Real life situation:

I wanted to continue all processes, so I wanted to type kill -SIGCONT -1 but instead I typed kill SIGCONT -1 by mistake which killed everything it could with SIGTERM.

I admit that I did mistake, however, I think that well written program should catch detectable mistakes.

I suggest, that the command should fail and not send any signal, if input is malformed (invalid signal, PID not a number etc.)

I'm willing to look at the code and do the change if it's accepted, but I don't have time to do it right now.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by chet (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 28 Dec 2015 03:11:15 PM UTCchetStatusNone=>Invalid

    Back to the top


    Powered by Savane 3.1-cleanup1