Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] udev-164: don't hardcode path to pidof
@ 2012-03-08 12:08 Andreas Oberritter
  2012-03-08 15:07 ` Otavio Salvador
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Andreas Oberritter @ 2012-03-08 12:08 UTC (permalink / raw)
  To: openembedded-core

* pidof lives in /bin, search it in $PATH.
* Assume pidof's presence.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
---
 meta/recipes-core/udev/udev/init   |    6 ++----
 meta/recipes-core/udev/udev_164.bb |    2 +-
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/meta/recipes-core/udev/udev/init b/meta/recipes-core/udev/udev/init
index 78b5b1c..f9e9014 100644
--- a/meta/recipes-core/udev/udev/init
+++ b/meta/recipes-core/udev/udev/init
@@ -28,10 +28,8 @@ readfile () {
 }
 
 kill_udevd() {
-	if [ -x /sbin/pidof ]; then
-		pid=`/sbin/pidof -x udevd`
-		[ -n "$pid" ] && kill $pid
-	fi
+	pid=`pidof -x udevd`
+	[ -n "$pid" ] && kill $pid
 }
 
 export ACTION=add
diff --git a/meta/recipes-core/udev/udev_164.bb b/meta/recipes-core/udev/udev_164.bb
index b993a13..d661044 100644
--- a/meta/recipes-core/udev/udev_164.bb
+++ b/meta/recipes-core/udev/udev_164.bb
@@ -1,6 +1,6 @@
 include udev.inc
 
-PR = "r11"
+PR = "r12"
 
 SRC_URI += "file://udev-166-v4l1-1.patch"
 
-- 
1.7.5.4




^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] udev-164: don't hardcode path to pidof
  2012-03-08 12:08 [PATCH] udev-164: don't hardcode path to pidof Andreas Oberritter
@ 2012-03-08 15:07 ` Otavio Salvador
  2012-03-08 18:10 ` Denys Dmytriyenko
  2012-03-08 20:09 ` Richard Purdie
  2 siblings, 0 replies; 4+ messages in thread
From: Otavio Salvador @ 2012-03-08 15:07 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

Acked-by: Otavio Salvador <otavio@ossystems.com.br>

On Thu, Mar 8, 2012 at 09:08, Andreas Oberritter <obi@opendreambox.org> wrote:
> * pidof lives in /bin, search it in $PATH.
> * Assume pidof's presence.
>
> Signed-off-by: Andreas Oberritter <obi@opendreambox.org>



-- 
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] udev-164: don't hardcode path to pidof
  2012-03-08 12:08 [PATCH] udev-164: don't hardcode path to pidof Andreas Oberritter
  2012-03-08 15:07 ` Otavio Salvador
@ 2012-03-08 18:10 ` Denys Dmytriyenko
  2012-03-08 20:09 ` Richard Purdie
  2 siblings, 0 replies; 4+ messages in thread
From: Denys Dmytriyenko @ 2012-03-08 18:10 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Thu, Mar 08, 2012 at 01:08:50PM +0100, Andreas Oberritter wrote:
> * pidof lives in /bin, search it in $PATH.

Nice catch! It does indeed live in /bin

> * Assume pidof's presence.
> 
> Signed-off-by: Andreas Oberritter <obi@opendreambox.org>

Acked-by: Denys Dmytriyenko <denys@ti.com>

> ---
>  meta/recipes-core/udev/udev/init   |    6 ++----
>  meta/recipes-core/udev/udev_164.bb |    2 +-
>  2 files changed, 3 insertions(+), 5 deletions(-)
> 
> diff --git a/meta/recipes-core/udev/udev/init b/meta/recipes-core/udev/udev/init
> index 78b5b1c..f9e9014 100644
> --- a/meta/recipes-core/udev/udev/init
> +++ b/meta/recipes-core/udev/udev/init
> @@ -28,10 +28,8 @@ readfile () {
>  }
>  
>  kill_udevd() {
> -	if [ -x /sbin/pidof ]; then
> -		pid=`/sbin/pidof -x udevd`
> -		[ -n "$pid" ] && kill $pid
> -	fi
> +	pid=`pidof -x udevd`
> +	[ -n "$pid" ] && kill $pid
>  }
>  
>  export ACTION=add
> diff --git a/meta/recipes-core/udev/udev_164.bb b/meta/recipes-core/udev/udev_164.bb
> index b993a13..d661044 100644
> --- a/meta/recipes-core/udev/udev_164.bb
> +++ b/meta/recipes-core/udev/udev_164.bb
> @@ -1,6 +1,6 @@
>  include udev.inc
>  
> -PR = "r11"
> +PR = "r12"
>  
>  SRC_URI += "file://udev-166-v4l1-1.patch"
>  
> -- 
> 1.7.5.4
> 
> 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] udev-164: don't hardcode path to pidof
  2012-03-08 12:08 [PATCH] udev-164: don't hardcode path to pidof Andreas Oberritter
  2012-03-08 15:07 ` Otavio Salvador
  2012-03-08 18:10 ` Denys Dmytriyenko
@ 2012-03-08 20:09 ` Richard Purdie
  2 siblings, 0 replies; 4+ messages in thread
From: Richard Purdie @ 2012-03-08 20:09 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Thu, 2012-03-08 at 13:08 +0100, Andreas Oberritter wrote:
> * pidof lives in /bin, search it in $PATH.
> * Assume pidof's presence.
> 
> Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
> ---
>  meta/recipes-core/udev/udev/init   |    6 ++----
>  meta/recipes-core/udev/udev_164.bb |    2 +-
>  2 files changed, 3 insertions(+), 5 deletions(-)

Merged to master, thanks.

Richard




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-03-08 20:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-08 12:08 [PATCH] udev-164: don't hardcode path to pidof Andreas Oberritter
2012-03-08 15:07 ` Otavio Salvador
2012-03-08 18:10 ` Denys Dmytriyenko
2012-03-08 20:09 ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox