Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 1/2] xinput-calibrator: avoid defunct process
@ 2020-08-28 20:08 Mark Asselstine
  2020-08-28 20:08 ` [PATCH 2/2] xinput-calibrator: make _once run only once Mark Asselstine
  2020-08-28 20:32 ` ✗ patchtest: failure for "xinput-calibrator: avoid defun..." and 1 more Patchwork
  0 siblings, 2 replies; 3+ messages in thread
From: Mark Asselstine @ 2020-08-28 20:08 UTC (permalink / raw)
  To: openembedded-core

The xinput_calibrator_once.sh script produces output on stdout and
stderr which the current 'Exec' doesn't consume. This results in a
[xinput_calibrator_once.sh] defunct process which will remain around
until we exit the X11 session.

Add a redirect to the Exec which will consume this output and avoid
the defunct process.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
---
 .../recipes-graphics/xinput-calibrator/xinput-calibrator_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-graphics/xinput-calibrator/xinput-calibrator_git.bb b/meta/recipes-graphics/xinput-calibrator/xinput-calibrator_git.bb
index 4f831932e7..c59f97895c 100644
--- a/meta/recipes-graphics/xinput-calibrator/xinput-calibrator_git.bb
+++ b/meta/recipes-graphics/xinput-calibrator/xinput-calibrator_git.bb
@@ -31,7 +31,7 @@ do_install_append() {
     install -m 0755 ${WORKDIR}/30xinput_calibrate.sh ${D}${sysconfdir}/X11/Xsession.d/
 
     install -d ${D}${sysconfdir}/xdg/autostart
-    sed -e 's,^Exec=.*,Exec=${bindir}/xinput_calibrator_once.sh,' ${S}/scripts/xinput_calibrator.desktop > ${D}${sysconfdir}/xdg/autostart/xinput_calibrator.desktop
+    sed -e 's,^Exec=.*,Exec=${bindir}/sh -c "${bindir}/xinput_calibrator_once.sh 2>\&1 > /dev/null",' ${S}/scripts/xinput_calibrator.desktop > ${D}${sysconfdir}/xdg/autostart/xinput_calibrator.desktop
 }
 
 FILES_${PN} += "${sysconfdir}/xdg/autostart"
-- 
2.27.0


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

end of thread, other threads:[~2020-08-28 20:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-28 20:08 [PATCH 1/2] xinput-calibrator: avoid defunct process Mark Asselstine
2020-08-28 20:08 ` [PATCH 2/2] xinput-calibrator: make _once run only once Mark Asselstine
2020-08-28 20:32 ` ✗ patchtest: failure for "xinput-calibrator: avoid defun..." and 1 more Patchwork

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