Unix Technical Forum

Re: pkill.c warn when "no such process"

This is a discussion on Re: pkill.c warn when "no such process" within the mailing.openbsd.tech forums, part of the OpenBSD category; --> On 2/21/08, Heinrich Rebehn <rebehn@ant.uni-bremen.de> wrote: > $ rm xxxx.* > rm: xxxx.*: No such file or directory > ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > mailing.openbsd.tech

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-22-2008, 09:16 AM
Ted Unangst
 
Posts: n/a
Default Re: pkill.c warn when "no such process"

On 2/21/08, Heinrich Rebehn <rebehn@ant.uni-bremen.de> wrote:
> $ rm xxxx.*
> rm: xxxx.*: No such file or directory
> Who says it's an error ? rm tried to delete all (in this case, none)
> files matched.
>
> Would you like to check the return status after every command issued
> just to rule out typos?


For commands that are given a specific, identifiable target, no. For
commands that are provided a pattern, yes.

There is a difference between commands like kill and pkill. By
providing a single pid to kill, you are indicating that you know
exactly which process you want killed. The fact that you know its
identity is ample evidence to imply that you know it exists. pkill
takes a pattern, implying that you do not know which particular
process you want killed. There is no evidence that you even know a
matching process exists, so pkill should not report an error.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:58 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com