[Goodies-dev] [Bug 4049] genmon does not display error output from commands
bugzilla-daemon at xfce.org
bugzilla-daemon at xfce.org
Tue Apr 29 22:26:58 CEST 2008
DO NOT REPLY TO THIS EMAIL. Also, do not reply via email to the person
whose email is mentioned below. To comment on this bug, please visit:
http://bugzilla.xfce.org/show_bug.cgi?id=4049
------- Comment #1 from stephent98 at hotmail.com 2008-04-29 20:26 UTC -------
Created an attachment (id=1610)
--> (http://bugzilla.xfce.org/attachment.cgi?id=1610&action=view)
genmon_SpawnCmd() returns 0 if there is data from stdout or stderr
This patch changes genmon_SpawnCmd() to return 0 when there is data from either
stdout or stderr, otherwise -1. If there is data from both, only data from
stdout is put into the buffer.
Test by configuring genmon with a period of one second, and each of these
commands:
1. "date" should show the current date and time.
2. "date -q" should show an error message.
3. "/bin/true" should show "XXX".
This patch also includes changes from
http://bugzilla.xfce.org/show_bug.cgi?id=4036
so that this patch can be tested with "/bin/true".
--
Configure bugmail: http://bugzilla.xfce.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Goodies-dev
mailing list