Skip to content

Commit f0c4786

Browse files
committed
added js runner
1 parent 5647b67 commit f0c4786

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22

33
## Content
44

5+
* http://aws.amazon.com/fr/blogs/compute/running-executables-in-aws-lambda/
56
* `ghc-centos`: Docker container for building Haskell binaries compatible with [Amazon's Linux AMI](http://docs.aws.amazon.com/lambda/latest/dg/current-supported-versions.html). Does not seem to be a good idea in general as there are quite a few differences between CentOS and Linux AMI.
67
* `run.js`: Javascript wrapper to run binary in a child process

run.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,9 @@ main.on('error', (err) => {
1414
});
1515

1616
main.on('close', (code) => {
17+
console.log(`child process pipes closed with code ${code}`);
18+
});
19+
20+
main.on('exit', (code) => {
1721
console.log(`child process exited with code ${code}`);
1822
});

0 commit comments

Comments
 (0)