+"Some operations can be cancelled by the caller while they are in progress. "
+"Currently only operations that involve uploading or downloading data can be "
+"cancelled (technically: operations that have C<FileIn> or C<FileOut> "
+"parameters in the generator)."
+msgstr ""
+
+#. type: =head2
+#: ../src/guestfs.pod:1959
+msgid "guestfs_user_cancel"
+msgstr ""
+
+#. type: verbatim
+#: ../src/guestfs.pod:1961
+#, no-wrap
+msgid ""
+" void guestfs_user_cancel (guestfs_h *g);\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:1963
+msgid "C<guestfs_user_cancel> cancels the current upload or download operation."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:1966
+msgid ""
+"Unlike most other libguestfs calls, this function is signal safe and thread "
+"safe. You can call it from a signal handler or from another thread, without "
+"needing to do any locking."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:1970
+msgid ""
+"The transfer that was in progress (if there is one) will stop shortly "
+"afterwards, and will return an error. The errno (see "
+"L</guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
+"out if the operation was cancelled or failed because of another error."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:1976
+msgid ""
+"No cleanup is performed: for example, if a file was being uploaded then "
+"after cancellation there may be a partially uploaded file. It is the "
+"caller's responsibility to clean up if necessary."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:1980
+msgid "There are two common places that you might call C<guestfs_user_cancel>."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:1982
+msgid ""
+"In an interactive text-based program, you might call it from a C<SIGINT> "
+"signal handler so that pressing C<^C> cancels the current operation. (You "
+"also need to call L</guestfs_set_pgroup> so that child processes don't "
+"receive the C<^C> signal)."
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:1987
+msgid ""
+"In a graphical program, when the main thread is displaying a progress bar "
+"with a cancel button, wire up the cancel button to call this function."
+msgstr ""
+
+#. type: =head1
+#: ../src/guestfs.pod:1991
+msgid "PRIVATE DATA AREA"
+msgstr ""
+
+#. type: textblock
+#: ../src/guestfs.pod:1993
+msgid ""