Re: Fwd: I would like to cancel archive creation
Johnathan Burchill <[email protected]>
| Newsgroups | gmane.comp.sysutils.backup.dar.general |
|---|---|
| Message-ID | <[email protected]> |
On June 19, 2004 09:59 am, Johnathan Burchill wrote: > Hi Denis, > > I received this from a kdar user who asks whether it is possible to > cancel a libdar operation. My first attempt will be to add the "dry-run" > feature to the creation process. However, this is not a "quick" test of > the backup, I think it takes a time comparable to the actual backup. Is > this right? > > As far as interrupting the creation process, now that libdar is > thread-safe, would there be a way to send it a "kill" signal, to get it > to stop what it is doing? A couple of people have asked for this > feature. QT has a method for terminating a thread, but this warning comes with the documentation: Warning: This function is dangerous, and its use is discouraged. The thread can be terminate at any point in its code path. Threads can be terminated while modifying data. There is no chance for the thread to cleanup after itself, unlock any held mutexes, etc. In short, use this function only if absolutely necessary. (from http://doc.trolltech.com/3.3/qthread.html) For the command line dar, a <Ctrl>-C will interrupt the libdar operation. I'm guessing that the terminate method is the equivalent for the QT GUI version. In dar-2.1.3, the library is not thread safe, so I only run one operation at a time, and killing the operation shouldn't be problematic as there are no locked mutexes. This should be like hitting <Ctrl>-C. But the new threadsafe library may have issues with this technique. Any comments? Cheers, JB [...] -- Johnathan K. Burchill, Ph.D. [email protected]
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQBA1IPtrXMSOtiWrO4RAkFTAKDQ4mAHmsuwZ1dJ5hwGUPxBJnUpQQCfaAQs DOUzmiFBi9vpc9M8LtGmwpo= =wQKw -----END PGP SIGNATURE-----