cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From matrosov-nikita <...@git.apache.org>
Subject [GitHub] cordova-browser pull request #31: CB-12905: (linux) Fix issue with freezing ...
Date Fri, 09 Jun 2017 16:45:11 GMT
Github user matrosov-nikita commented on a diff in the pull request:

    https://github.com/apache/cordova-browser/pull/31#discussion_r121171981
  
    --- Diff: node_modules/cordova-serve/src/exec.js ---
    @@ -29,7 +29,15 @@ var child_process = require('child_process'),
     module.exports = function (cmd, opt_cwd) {
         var d = Q.defer();
         try {
    +        // In Linux, the callback is not called until the process terminates.
    +        // If the error is not caused within 2 seconds, then the promise will be resolved.
    +        var timer = setTimeout(() => {
    +            if (process.platform == 'linux') {
    +                d.resolve('timeout');
    +            }
    +        }, 2000);
             child_process.exec(cmd, {cwd: opt_cwd, maxBuffer: 1024000}, function (err, stdout,
stderr) {
    --- End diff --
    
    Were you able to figure out why callback is not called?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


Mime
View raw message