site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com 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 - ### // LaunchServices enum { kLSUnknownErr = -10810, /* Unexpected internal error*/ }; ### 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… ### % sysctl -a | grep maxproc kern.maxproc = 532 kern.maxprocperuid = 100 ### On 2009-01-21, at 11:47:02, Rakesh Singhal wrote: Hi Rakesh, Philip Aker echo astwta@lvpc.dslh@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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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. <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: I think you were probably running into the limits on the number of processes: <http://www.google.com/search?q=error+10810&btnmeta%3Dsearch%3Dmac=Search+Mac...
Regards On Thu, Jan 22, 2009 at 4:51 PM, Philip Aker <philip.aker@shaw.ca> 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. 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." This email sent to site_archiver@lists.apple.com