On Wednesday 18 January 2012 05:08:40 Jan Stancek wrote:
> > From: "Peng Haitao" <[email protected]>
> > +   kill -s SIGUSR1 $pid 2> /dev/null
> 
> I ran the v2, but it fails for me. The problem is in changes to 'kill'.
> It doesn't seem to be picking /bin/kill, but internal implementation from
> sh, which doesn't accept same parameters.
> 
> cat > a.sh<<EOF
> #!/bin/sh
> kill -s SIGUSR1 $$
> EOF
> 
> "kill -s USR1 $pid" should work for both.

yes, this is the POSIX syntax that should be used.  bash accepting "SIGUSR1" 
is an extension.

http://pubs.opengroup.org/onlinepubs/9699919799/utilities/kill.html
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to