Hi Mike,
Mike Frysinger wrote:
The oggplay relies on fork() (superficially if you ask me) and does not
display anything when fork() fails (like no-mmu). So if it fails due to
ENOSYS, play the file ourselves, otherwise dump a proper error message.
Signed-off-by: Mike Frysinger <vap...@gentoo.org>
Applied.
Thanks
Greg
user/oggplay/oggplay.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/user/oggplay/oggplay.c b/user/oggplay/oggplay.c
index 42aa73b..56d5a32 100644
--- a/user/oggplay/oggplay.c
+++ b/user/oggplay/oggplay.c
@@ -904,7 +904,10 @@ nextfile:
if (errno != EINTR)
break;
}
- }
+ } else if (errno == ENOSYS)
+ play_one(argv[argnr]);
+ else
+ perror("fork()");
if (slptime)
sleep(slptime);
--
------------------------------------------------------------------------
Greg Ungerer -- Principal Engineer EMAIL: g...@snapgear.com
SnapGear, a McAfee Company PHONE: +61 7 3435 2888
825 Stanley St, FAX: +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia WEB: http://www.SnapGear.com
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev