[Mono-list] Process.GetProcess()
Robert Jordan
robertj at gmx.net
Thu Jan 24 00:27:58 UTC 2013
On 24.01.2013 01:02, mickeyf wrote:
> I need a simple app that checks whether a different one is running, and if
> not, restarts it.
>
> If I'm correctly understanding the replies to this post
> <http://mono.1490590.n4.nabble.com/Fail-to-set-socket-send-amp-receive-timeout-td1493357.html#a1493359>
> , and depending on who is correct, System.Diagnostics.Process.GetProcess()
> can find either
>
> 1) processes started by the same user, or
> 2) processes started by mono
>
> ...but not any arbitrary process.
That was the situation 7 years ago ;) Nowadays you should be able to
enum all processes, at least with a decent Mono version (> 2.8?)
Robert
More information about the Mono-list
mailing list