http://www.perlmonks.org?node_id=419392


in reply to Re: Cleaning up after CTRL-C when using Net::DNS::Nameserver on Windows?
in thread Cleaning up after CTRL-C when using Net::DNS::Nameserver on Windows?

I would rather not fork on windows. I'm trying to keep this code light on memory, and I've had problems with fork and reading from sockets on windows in the past.

Setting this forking discussion aside, this still does't tell me why my END block doesn't run as I expect/want.

It is windows, so I'm thinking about just calling my perl script from a batch file and reseting the interface with a second script that runs after the first one exits. Not as clean of a solution as I'd like, but eventually I expect this to run as a service, so the CTRL-C portion will be moot at that point...
  • Comment on Re^2: Cleaning up after CTRL-C when using Net::DNS::Nameserver on Windows?