From: jnf <xjnfx@doityourself.com>
To: Glynn Clements <glynn.clements@virgin.net>, Tver Mit <Vukdev@mail.ru>
Cc: linux-c-programming@vger.kernel.org
Subject: Re: faults in dynamic libraries
Date: Sun, 16 Jun 2002 03:50:11 -0700 (PDT) [thread overview]
Message-ID: <20020616105011.E5FAD3ED3@sitemail.everyone.net> (raw)
not much better, but if one created a plugin manager type process that dealt with them all, it would keep the main process from dying if a plugin died?
--- Glynn Clements <glynn.clements@virgin.net> wrote:
>
>Tver Mit wrote:
>
>> I write a programm that uses plugins (on dl* functions base). When plugin code is free of
>> bugs all is ok, but when plugin faults by any reason, my programm do so. I want my programm
>> to work even if plugin dies. I see two ways:
>> 1. handling signals
>> 2. run plugin in different thread or process
>> but then:
>> in 1. what will be with resources, that plugin use ?
>> in 2. it'll be about 15-20 plugins running - so there will be 15-20 processes. And how to synchronise them all?
>>
>> Got any ideas, opinions?
>
>If a plugin shares its address space with the main program, a bug can
>corrupt that address space, killing the main program.
>
>Running plugins in a separate process is the only reliable mechanism,
>but it probably isn't practical. Even then, a plugin may still be able
>to interfere with the main process if they share system resources such
>as file descriptors.
>
>--
>Glynn Clements <glynn.clements@virgin.net>
>-
>To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at http://vger.kernel.org/majordomo-info.html
_____________________________________________________________
Sign up for FREE email from DoItYourself.com at http://doityourself.com
_____________________________________________________________
Promote your group and strengthen ties to your members with email@yourgroup.org by Everyone.net http://www.everyone.net/?btn=tag
next reply other threads:[~2002-06-16 10:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-16 10:50 jnf [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-06-13 9:45 faults in dynamic libraries Tver Mit
2002-06-13 11:52 ` Glynn Clements
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020616105011.E5FAD3ED3@sitemail.everyone.net \
--to=xjnfx@doityourself.com \
--cc=Vukdev@mail.ru \
--cc=glynn.clements@virgin.net \
--cc=linux-c-programming@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).