Re: Launch a user-process from daemon
Re: Launch a user-process from daemon
- Subject: Re: Launch a user-process from daemon
- From: Philip Aker <email@hidden>
- Date: Thu, 22 Jan 2009 12:15:47 -0800
On 2009-01-22, at 10:34:05, Rakesh Singhal wrote:
Thanks. I think now I will simplify the query. I try to launch one
application from a daemon application and I am getting error -10810.
Rakesh -
That's not what I wanted to hear. Don't talk of daemons.
Talk of what happens for your user when this secret device is plugged
in.
###
// LaunchServices
enum {
kLSUnknownErr = -10810, /* Unexpected internal error*/
};
###
<http://forums.macosxhints.com/archive/index.php/t-57456.html>
OK, I think I may have found the cuprit, looking at my post a bit more
I wondered why I had 529 processes running, turns out I had a stack of
smbd processes:
ps aex | grep smbd | wc -l
456
Turning off Windows file sharing did not release the processes, but:
sudo killall -9 smbd
seems to have cleared the situation up…
###
I think you were probably running into the limits on the number of
processes:
% sysctl -a | grep maxproc
kern.maxproc = 532
kern.maxprocperuid = 100
###
<http://www.google.com/search?q=error+10810&btnmeta=search=mac=Search+Mac+Sites&language-switcher=http://www.google.com/mac/
>
Regards
On Thu, Jan 22, 2009 at 4:51 PM, Philip Aker <email@hidden>
wrote:
On 2009-01-21, at 11:47:02, Rakesh Singhal wrote:
Currently I have one daemon app. I want to launch a GUI from
daemon, when
it gets device plugged-in notification. I observed following
things while
working on 10.4.11 ppc only using daemon (not agent):
1. The daemon launches the GUI on 10.4.11 ppc when I start the
system. Now
if I log out and logs in and plug-in device again then it gives
error
-10810. I could not understand that why does this error come and
how to
resolve this.
2. If I first log in as root user and daemon launches the GUI. Now
I close
the GUI and switch to another user. Now if daemon launches the GUI
then it
gets launched in root user, not in current user. It shows same
behavior with
all users.
I have written an agent app also. If I use agent also with daemon
then
also it does not solve any of above problems.
I hope, it is clear now.
Hi Rakesh,
As a casual reader, it's not clear. You are describing things in
terms of _
what methods and tools _ you want to accomplish some goal. But
Shawn asked:
Also can you state what you are trying to achieve at a high level.
To answer that question, you might say something like: "We have a
USB device
that needs to be detected when it is plugged in. When it's first
connected
it will launch an application showing a configuration window to the
user --
but only if conditions Z, Y, and X are met."
Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@
Democracy: Two wolves and a sheep voting on lunch.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden