develooper Front page | perl.perl5.porters | Postings from April 2008

Stupid Transaction Idea?

Thread Next
April 2, 2008 02:03
Stupid Transaction Idea?
Message ID:
I would swear someone else has asked this, but just in case ...

Using forks or threads, what would it take to convince perl that
another process was the *real* process?  That could let us do this:

  start_transaction();       # fork
  if ( we_be_happy() ) {
    commit();                # discard fork
  else {
    rollback();              # switched to forked copy

While there would be all sorts of caveats involved (can't backtrack
over deleted files very easily, for example), how hard would something
like this be to implement?  The idea sounds so obvious that I can only
assume there are serious reasons why it has not been tried.


Buy the book  -
Perl and CGI  -
Personal blog -
Tech blog     -

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About