Page 1 of 1

lsock never works in iOS

PostPosted: Wed Mar 04, 2015 8:35 pm
by shmuck
When executing lsock in iOS 8, it always prompts to first kill the UserEventAgent process then starting lsock right after. No matter how you twist it and dice it, lsock seems to always complain that "Apparently some other process is using the system socket. On iOS, this is usually UserEventAgent. Kill it (-9!) and immediately start this program
Unable to continue without socket"

Killing the process will always get instantiated as soon as it's killed (most likely by launchd). Any hints?

Re: lsock never works in iOS

PostPosted: Sat Mar 14, 2015 2:52 am
by morpheus
That's because you're using the older version of lsock, which - I admit somewhat embarrassingly - had a bug. The new version which I've updated is not only more stable but also gets around the exclusive access - see the source at http://newosxbook.com/src.jl?tree=listings&file=lsock.c - and there's also a compiled tar you can grab .

Incidentally, there's a way to prevent the auto-relaunching if you need it for other cases - that's by kill -STOP'ing launchd itself (kill -STOP 1), then killing whatever daemon, then kill -CONT 1. Or by using launchctl . But if you grab the new version, you don't need any of it, and it should work.

Re: lsock never works in iOS

PostPosted: Fri May 29, 2015 6:02 pm
by backendbilly
Thank you. It works now. Comes very handy.