[rrd-developers] Re: rrdtool libraries segfault with getopt

Tobias Oetiker oetiker at ee.ethz.ch
Thu Apr 3 23:32:30 MEST 2003


Today Markus Baertschi wrote:

>
> I'm developping an app in C which is calling rrd_update and rrd_create
> directly (linking with librrd). So far things are working, but there
> is a problem if I mix calls to rrd_create and rrd_update. The rrd_update
> call generates a segfault and my app is dead :-(.

how about using rrd_cgi.c or rrd_tool.c as an example? see how
optind gets reset ?

cheers
tobi
-- 
 ______    __   _
/_  __/_  / /  (_) Oetiker @ ISG.EE, ETZ J97, ETH, CH-8092 Zurich
 / // _ \/ _ \/ /  System Manager, Time Lord, Coder, Designer, Coach
/_/ \.__/_.__/_/   http://people.ee.ethz.ch/~oetiker   +41(0)1-632-5286

--
Unsubscribe mailto:rrd-developers-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-developers-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-developers
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-developers mailing list