From d547fc2a1be23e18c34eb189150ef55db8bc5c56 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sun, 18 May 2008 19:44:14 +0200 Subject: Fix Bashisms in contrib/ocs (Closes: #480591) --- debian/patches/03-fix-ocs-bashisms.dpatch | 67 +++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100755 debian/patches/03-fix-ocs-bashisms.dpatch (limited to 'debian/patches/03-fix-ocs-bashisms.dpatch') diff --git a/debian/patches/03-fix-ocs-bashisms.dpatch b/debian/patches/03-fix-ocs-bashisms.dpatch new file mode 100755 index 0000000..01cd011 --- /dev/null +++ b/debian/patches/03-fix-ocs-bashisms.dpatch @@ -0,0 +1,67 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 03-fix-ocs-bashisms.dpatch +## +## DP: Fixes bashims in ocs +## DP: (Closes: #480591) + +--- a/contrib/ocs ++++ b/contrib/ocs +@@ -87,7 +87,7 @@ if [ ! -d ${SYSDIR} ]; then + fi + + # Check that cscope is in PATH +-type cscope 1>/dev/null 2>&1 ++which cscope 1>/dev/null 2>&1 + + if [ $? -ne 0 ] + then +@@ -168,8 +168,8 @@ create_list() + + if [ "${FORCE}" != "Y" ] + then +- echo "\n${LIST}" +- echo "Update the library? <(Y)es, (N)o, (Q)uit> [n] \c" ++ printf "\n${LIST}\n" ++ printf "Update the library? <(Y)es, (N)o, (Q)uit> [n] " + read x y + case $x in + [Yy]* ) ;; +@@ -177,9 +177,9 @@ create_list() + *) return ;; + esac + fi +- echo "Updating library:\n ${LIST} \c" ++ printf "Updating library:\n ${LIST} " + else +- echo "Creating library:\n ${LIST} \c" ++ printf "Creating library:\n ${LIST} " + fi + + ( +@@ -197,7 +197,7 @@ create_list() + -print + ) | grep -v SCCS | sort -u > ${LIST} + +- echo "\n`cat ${LIST} | wc -l` files listed" ++ printf "\n`cat ${LIST} | wc -l` files listed\n" + } + + # +@@ -211,7 +211,7 @@ exp_inc() + then + for i in `cat ${theInc}` + do +- echo "-I $i \c" ++ printf "-I $i " + done + fi + } +@@ -286,7 +286,7 @@ std_libs ${SYSDIR}$PWD + + DIR=$PWD + if [ ! -n "${NOUPDATE}" -o -n "${SPECDEST}" ] ; then +-echo "Create new library? <(L)ocal, (H)ome, (S)ystem, (Q)uit> [q] \c" ++printf "Create new library? <(L)ocal, (H)ome, (S)ystem, (Q)uit> [q] " + read x y + case $x in + [Ll]* ) DIR=$PWD ;; -- cgit v1.2.3-54-g00ecf ue='89c86a64cd056e283323710c9ddf6f7090a450c8'/>
path: root/lib/kobject.c
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2013-12-05 17:37:51 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-07 21:14:13 -0800
commit89c86a64cd056e283323710c9ddf6f7090a450c8 (patch)
tree44fc2cd43f9cffc0ecfd44295b2d16411b827b1c /lib/kobject.c
parent2322392b020badfe49730f1529b9c1a15248c387 (diff)
kobject: delay kobject release for random time
When CONFIG_DEBUG_KOBJECT_RELEASE=y, delay kobject release functions for a random time between 1 and 8 seconds, which effectively changes the order in which they're called. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/kobject.c')