[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] Appl_search cannot return APP_SHELL
- To: "mint@lists.fishpool.fi" <mint@lists.fishpool.fi>
- Subject: Re: [MiNT] Appl_search cannot return APP_SHELL
- From: WongCK <wongck68@yahoo.com>
- Date: Sat, 27 Dec 2014 01:04:41 +0000 (UTC)
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1419642282; bh=vIZwmMPmZnfQJ+fjeqOVxwAQPBpuwNhw6R95qPN7kSA=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=nIxGOnl6ZSiL6oSl46t8iWW4TbB+phldAPSJ1QzJlr82R+tGix+YZcaoZJPgmajWosKr/tW7j1iKGhPNmMZ/IdfHUjmjczWroYaxn5uldGKj7S/ujfOC+cYhuJdTdVpK4L9TMmJw9ZXuVLt74u8KMbfsm1xzDpwLEoc/tXMl0yrUfMLkVXL8tzRAuTaaqm0uIJy9+NOlDzbaz6bcehvnZoGa7a7NFDcG/PQyjBxXmcc17Lj6gcdCBl0kjgr2oMkuSDrlfLp/liiNiScqZLQGkB7wyU04uIBDtskaxdBi5NG2wpWYCjq+QunOBI5iN/7qHtyZdo3fu4JlgAKejOb5NA==
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s2048; d=yahoo.com; b=FOXxeBa+Ul6MVStwndsmh7GpmJAQQOieINMgZPZkr3LykCVgVUCvP6NRpu3+Eajxb+PBbKHsM0ebT5lph9JTBgP5PGBzd8/rY3Z/xN7c3l1OwCymvFN24oCMN7pLu3JgCIlsjWS/cR9Ht7fMF7fgRSDyVtTyLF0CC5cZMjmJF9rIN3y2wqVnuohRL8n0kovNgmdHFPGf0IbYIY0sukv/DHoqV532+O3TIP2xyZ1ezmCcbQR0kDkqfAVKXHF8uAxQAtA7xQ0qDeHjiGgZN29OFsIZrDQ7xgkPC0hWBNP3LjuGXWzNOr6UCpVCfeByWpSGXuUFQQQ60Tsdpzmp6TlyvQ==;
- In-reply-to: <1419623451.3768.87.camel@sterkenils>
- List-help: <mailto:ecartis@lists.fishpool.fi?Subject=help>
- List-id: <mint.lists.fishpool.fi>
- List-owner: <mailto:tjhukkan@fishpool.fi>
- List-post: <mailto:mint@lists.fishpool.fi>
- List-subscribe: <mailto:mint-request@lists.fishpool.fi?Subject=subscribe>
- List-unsubscribe: <mailto:mint-request@lists.fishpool.fi?Subject=unsubscribe>
- References: <1419623451.3768.87.camel@sterkenils>
- Reply-to: WongCK <wongck68@yahoo.com>
- Sender: mint-bounce@lists.fishpool.fi
Hi,
>
> Just curious - what is this code for? The variable names suggests that y
> you're looking for the parent of some process, is that correct? If so,
> appl_search is probably not the way to go.
>
I am just reusing the variables names during testing. the real parentid is coming from Pgetppid.
I will then us it to see if the program is started from the desktop or by some other process.
> I can't see anything wrong with this code, although I think it would be
> neater to do it like this:
>
Actually the printf are not there... it's just for debugging purpose. GDB seems to drill down to lib/code even without symbols & gives alerts on each steps. The doc say it should not step into codes without symbol. So I am using printf statements for debugging.
> more = appl_search(APP_FIRST....
> while (more)
> {
> print("Put debug stuff here\n");
> more = appl_search(APP_NEXT...
> }
>
yes, it is neater. Thanks. :-)
>
> Take a look in the XaAES Task Manager. Is the Teradesk line displayed in
> brown/maroon? The shell is brown/maroon, accs are blue and applications
> are red.
Teradesk is brown/maroon in colour, so it is started with the SHELL command.
I cannot figure out why it is coming out wrongly.
I may have to rebuild the system again :-(
Some months back I found my Libm was giving bad Coldfire build while 68020-60 build was giving correct results. Yeah, they are different lib files so it may have corrupted CF versions.
Thanks.