Checkout
philip
committed
on 09 Feb 16
Move signal handling and cancellation code to libsvn_subr to avoid
duplication in multiple programs.

* subversion/include/private/svn_cmdli… Show more
Move signal handling and cancellation code to libsvn_subr to avoid

duplication in multiple programs.

* subversion/include/private/svn_cmdline_private.h

 (svn_cmdline__setup_cancellation_handler,

  svn_cmdline__disable_cancellation_handler,

  svn_cmdline__get_cancellation_signal): New.

* subversion/libsvn_subr/cmdline.c

 (signal_handler, check_cancel,

  svn_cmdline__setup_cancellation_handler,

  svn_cmdline__disable_cancellation_handler,

  svn_cmdline__get_cancellation_signal): New, code from svn.c and svnadmin.c.

* subversion/svn/cl.h

 (svn_cl__check_cancel): Change type to pointer.

* subversion/svn/svn.c

 (svn_cl__check_cancel): Change type to pointer.

 (signal_handler): Remove.

 (sub_main, main): Call new functions.

* subversion/svnadmin/svnadmin.c

 (check_cancel): Change type to pointer.

 (signal_handler, setup_cancellation_signalsl): Remove.

 (repos_notify_handler, subcommand_recover, subcommand_upgrade,

  sub_main, main): Call new functions.

* subversion/svnbench/cl.h

 (svn_cl__check_cancel): Change type to pointer.

* subversion/svnbench/svnbench.c

 (svn_cl__check_cancel): Change type to pointer.

 (signal_handler): Remove.

 (sub_main, main): Call new functions.

* subversion/svnfsfs/svnfsfs.h

 (check_cancel): Change type to pointer.

* subversion/svnfsfs/svnfsfs.c

 (check_cancel): Change type to pointer.

 (signal_handler, setup_cancellation_signals): Remove.

 (sub_main, main): Call new functions.

* subversion/svnlook/svnlook.c

 (check_cancel): Change type to pointer.

 (signal_handler): Remove.

 (sub_main, main): Call new functions.

* subversion/svnrdump/svnrdump.c

 (check_cancel): Change type to pointer.

 (signal_handler): Remove.

 (sub_main, main): Call new functions.

* subversion/svnsync/svnsync.c

 (check_cancel): Change type to pointer.

 (signal_handler): Remove.

 (sub_main, main): Call new functions.

Show less