From 9a2bcc0b92b392f1f21cd26927515e4d49bc128e Mon Sep 17 00:00:00 2001 From: lefranc Date: Fri, 1 Aug 2008 09:25:43 +0000 Subject: - import of buildroot original sources (20080729 version) git-svn-id: svn+ssh://pessac/svn/cesar/trunk@2704 017c9cb6-072f-447c-8318-d5b54f68fe89 --- .../oprofile/oprofile-dont-use-kill-s.patch | 65 ++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 cleopatre/buildroot/package/oprofile/oprofile-dont-use-kill-s.patch (limited to 'cleopatre/buildroot/package/oprofile/oprofile-dont-use-kill-s.patch') diff --git a/cleopatre/buildroot/package/oprofile/oprofile-dont-use-kill-s.patch b/cleopatre/buildroot/package/oprofile/oprofile-dont-use-kill-s.patch new file mode 100644 index 0000000000..a293fffdb4 --- /dev/null +++ b/cleopatre/buildroot/package/oprofile/oprofile-dont-use-kill-s.patch @@ -0,0 +1,65 @@ +From 34a0afeb251d14c2c98e8b61a85f6621a9ffe3d0 Mon Sep 17 00:00:00 2001 +From: Haavard Skinnemoen +Date: Tue, 6 Nov 2007 19:38:24 +0100 +Subject: [PATCH] opcontrol: don't use kill -s + +Busybox's implementation of "kill" doesn't understand the "-s SIG" +option. Use "-SIG" instead. + +Signed-off-by: Haavard Skinnemoen +--- + utils/opcontrol | 10 +++++----- + 1 files changed, 5 insertions(+), 5 deletions(-) + +diff --git a/utils/opcontrol b/utils/opcontrol +index 7cb68a7..5a75cd2 100644 +--- a/utils/opcontrol ++++ b/utils/opcontrol +@@ -908,7 +908,7 @@ do_stop() + return + fi + +- kill -s 0 `cat $LOCK_FILE` 2>/dev/null ++ kill -0 `cat $LOCK_FILE` 2>/dev/null + if test "$?" -ne 0; then + echo "Detected stale lock file. Removing." >&2 + rm -f "$LOCK_FILE" +@@ -919,7 +919,7 @@ do_stop() + echo "Stopping profiling." + echo 0 >/dev/oprofile/enable + fi +- kill -s USR2 `cat $LOCK_FILE` 2>/dev/null ++ kill -USR2 `cat $LOCK_FILE` 2>/dev/null + } + + +@@ -932,7 +932,7 @@ do_kill_daemon() + return + fi + +- kill -s 0 `cat $LOCK_FILE` 2>/dev/null ++ kill -0 `cat $LOCK_FILE` 2>/dev/null + if test "$?" -ne 0; then + echo "Detected stale lock file. Removing." >&2 + rm -f "$LOCK_FILE" +@@ -1274,7 +1274,7 @@ do_start_daemon() + { + + if test -f "$LOCK_FILE"; then +- kill -s 0 `cat $LOCK_FILE` 2>/dev/null ++ kill -0 `cat $LOCK_FILE` 2>/dev/null + if test "$?" -eq 0; then + return; + else +@@ -1341,7 +1341,7 @@ do_start() + if test "$KERNEL_SUPPORT" = "yes"; then + echo 1 >$MOUNT/enable + fi +- kill -s USR1 `cat $LOCK_FILE` 2>/dev/null ++ kill -USR1 `cat $LOCK_FILE` 2>/dev/null + echo "Profiler running." + } + +-- +1.5.3.4 + -- cgit v1.2.3