[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-wget] (no subject)
From: |
Ethan Zheng |
Subject: |
[Bug-wget] (no subject) |
Date: |
Tue, 30 Aug 2011 12:55:10 -0400 |
Hi,
I have made 1.10 a dll, everything looks fine until I started trying recall the
wget main() without reloading the dll.
It looks like bunch of global variables are not reset upon main() return.
By forcing: optind = 1; /* force reset
optind */before: while ((ret = getopt_long (argc, argv, short_options,
long_options, &longindex)) != -1) @wget.c
I can get multiple download working, tested some reruns, not much don't know if
there would be memory leak or not in large run. (This is my 1st question).
Currently struggling with log function, if log is turned off, expecting logfp =
stderr. stderr flag got stuck at _F_EOF after the first main() call. Don't
know what happened yet.
Biggest question: is there a built in option for the main() to be recalled
without worrying about latched global resources?
Regards,
Ethan
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-wget] (no subject),
Ethan Zheng <=