[Mono-dev] patch provided for mon-mmap.c to fix /dev/shm/mono.pid pileups

Zoltan Varga vargaz at gmail.com
Thu Apr 8 00:26:31 EDT 2010


Hi,

  This patch is already on the mono 2.6 branch, it will be in the next 2.6
maintenance release.

             Zoltan

On Wed, Feb 24, 2010 at 12:02 PM, cpMon <page.cal at gmail.com> wrote:

>
> Here's a patch you should consider for mono-2.6.1. Specifically, I noticed
> that /dev/shm/mono.pid files were piling up and not being cleaned up as
> they
> should have been. mono-mmap.c tries to get rid of stale ones with a kill
> but
> they don't check for ENOMEM return which causes the cleanup to fail.
> Additionally, every other time I tried to start mono, it would just quit.
>
> Here's the patch:
>
> 470c470
> <               if (curpid != pid && kill (pid, SIGCONT) == -1 && (errno ==
> ESRCH ||
> errno == ENOMEM) ) {
> ---
> >               if (curpid != pid && kill (pid, SIGCONT) == -1 && errno ==
> ESRCH) {
>
> This has been tested on various 2.6 Linux boxes successfully.
>
> Cal Page
>
> --
> View this message in context:
> http://n4.nabble.com/patch-provided-for-mon-mmap-c-to-fix-dev-shm-mono-pid-pileups-tp1567307p1567307.html
> Sent from the Mono - Dev mailing list archive at Nabble.com.
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20100408/2a33c41c/attachment.html 


More information about the Mono-devel-list mailing list