Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

kill does not work #57

Open
Open
@thisboyiscrazy

Description

@thisboyiscrazy
Rsync = require('rsync');

cmd = new Rsync()
    .flags('avz')
    .source('src/')
    .destination('dst/');

c = cmd.execute(
    function(error,code,cmd) { console.log("Done"); },
    function(data) { console.log(data.toString()); },
    function(data) { console.log(data.toString()); },
);

setTimeout(function() {
    console.log("!!!!!!!Killing!!!!!!");
    c.kill();
},4000);

Should kill the sync after 4 seconds. It does not. rsync does seem to receive the signal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions