----- Original Message -----
> From: "Peng Haitao" <[email protected]>
> To: "Cyril Hrubis" <[email protected]>, "Garrett Cooper" <[email protected]>, 
> "Mike Frysinger" <[email protected]>,
> "Jan Stancek" <[email protected]>
> Cc: "LTP List" <[email protected]>
> Sent: Wednesday, January 18, 2012 9:45:14 AM
> Subject: [LTP] [PATCH v2 1/8] A library used to test memcg
> 
> +     kill -s SIGUSR1 $pid 2> /dev/null

Hi,

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

chmod a+x a.sh
./a.sh

Debian squeeze
kill: 2: invalid signal number or name: SIGUSR1

Fedora16
./a.sh: line 2: kill: SIGUSR1: invalid signal specification

RHEL6
./a.sh: line 2: kill: SIGUSR1: invalid signal specification

"kill -s USR1 $pid" should work for both.

Regards,
Jan

------------------------------------------------------------------------------
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