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

Commit ced8e1c

Browse files
committed
1.0.11: Fixed deadlock when child process reads from stdin
- Fixed a deadlock that can occur when the child process tries to read from the standard input - The deadlock occurs because jobson provides no standard input to child processes, but keeps the standard input open. This causes child processes to deadlock indefinitely when 'read'ing from stdin - This fix makes jobson 'close' the standard input of any child process at launch time. If any child process attempts to read from the standard input they'll read 0 bytes then stop - See #67 for more info - Thanks to @Russel88 for finding this bug!
2 parents 8e2d20d + 77e903a commit ced8e1c

File tree

14 files changed

+62
-31
lines changed

14 files changed

+62
-31
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ addons:
1414
- python3
1515
- python3-pip
1616
- python3-setuptools
17+
- python3-venv
1718
- nodejs
1819
- docker
1920
before_install:
2021
- gem install fpm --version 1.10.0
21-
- pip3 install --user --upgrade pip virtualenv
22-
- virtualenv -p python3 venv
22+
- pip3 install --user --upgrade pip
23+
- python3 -m venv venv/
2324
- source venv/bin/activate
2425
- pip3 install -r jobson-docs/requirements.txt
2526
script: mvn package

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ Requires java (8+):
4848
4949
```bash
5050
# install and add to PATH
51-
wget https://github.com/adamkewley/jobson/releases/download/1.0.10/jobson-nix-1.0.10.tar.gz
52-
tar xvf jobson-nix-1.0.10.tar.gz
53-
export PATH=$PATH:jobson-nix-1.0.10/bin
51+
wget https://github.com/adamkewley/jobson/releases/download/1.0.11/jobson-nix-1.0.11.tar.gz
52+
tar xvf jobson-nix-1.0.11.tar.gz
53+
export PATH=$PATH:jobson-nix-1.0.11/bin
5454

5555
# create demo workspace
5656
jobson new --demo

jobson-deb/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>com.github.jobson</groupId>
99
<artifactId>jobson-project</artifactId>
10-
<version>1.0.10</version>
10+
<version>1.0.11</version>
1111
</parent>
1212

1313
<artifactId>jobson-deb</artifactId>
@@ -17,7 +17,7 @@
1717
<dependency>
1818
<groupId>com.github.jobson</groupId>
1919
<artifactId>jobson-nix</artifactId>
20-
<version>1.0.10</version>
20+
<version>1.0.11</version>
2121
<type>tar.gz</type>
2222
</dependency>
2323
</dependencies>

jobson-docker/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>com.github.jobson</groupId>
99
<artifactId>jobson-project</artifactId>
10-
<version>1.0.10</version>
10+
<version>1.0.11</version>
1111
</parent>
1212

1313
<artifactId>jobson-docker</artifactId>
@@ -17,7 +17,7 @@
1717
<dependency>
1818
<groupId>com.github.jobson</groupId>
1919
<artifactId>jobson-deb</artifactId>
20-
<version>1.0.10</version>
20+
<version>1.0.11</version>
2121
<type>deb</type>
2222
</dependency>
2323
</dependencies>

jobson-docs/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
<parent>
88
<groupId>com.github.jobson</groupId>
99
<artifactId>jobson-project</artifactId>
10-
<version>1.0.10</version>
10+
<version>1.0.11</version>
1111
</parent>
1212

1313
<artifactId>jobson-docs</artifactId>
14-
<version>1.0.10</version>
14+
<version>1.0.11</version>
1515
<packaging>pom</packaging>
1616

1717
<dependencies>

jobson-nix/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>com.github.jobson</groupId>
99
<artifactId>jobson-project</artifactId>
10-
<version>1.0.10</version>
10+
<version>1.0.11</version>
1111
</parent>
1212

1313
<artifactId>jobson-nix</artifactId>
@@ -17,18 +17,18 @@
1717
<dependency>
1818
<groupId>com.github.jobson</groupId>
1919
<artifactId>jobson</artifactId>
20-
<version>1.0.10</version>
20+
<version>1.0.11</version>
2121
</dependency>
2222
<dependency>
2323
<groupId>com.github.jobson</groupId>
2424
<artifactId>jobson-docs</artifactId>
25-
<version>1.0.10</version>
25+
<version>1.0.11</version>
2626
<type>tar.gz</type>
2727
</dependency>
2828
<dependency>
2929
<groupId>com.github.jobson</groupId>
3030
<artifactId>jobson-ui</artifactId>
31-
<version>1.0.10</version>
31+
<version>1.0.11</version>
3232
<type>tar.gz</type>
3333
</dependency>
3434
</dependencies>

jobson-swagger-ui/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
<parent>
88
<groupId>com.github.jobson</groupId>
99
<artifactId>jobson-project</artifactId>
10-
<version>1.0.10</version>
10+
<version>1.0.11</version>
1111
</parent>
1212

1313
<artifactId>jobson-swagger-ui</artifactId>
14-
<version>1.0.10</version>
14+
<version>1.0.11</version>
1515
<packaging>pom</packaging>
1616

1717
<dependencies>

jobson-swagger/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@
77
<parent>
88
<groupId>com.github.jobson</groupId>
99
<artifactId>jobson-project</artifactId>
10-
<version>1.0.10</version>
10+
<version>1.0.11</version>
1111
</parent>
1212

1313
<artifactId>jobson-swagger</artifactId>
14-
<version>1.0.10</version>
14+
<version>1.0.11</version>
1515
<packaging>pom</packaging>
1616

1717
<dependencies>
1818
<dependency>
1919
<groupId>com.github.jobson</groupId>
2020
<artifactId>jobson</artifactId>
21-
<version>1.0.10</version>
21+
<version>1.0.11</version>
2222
<exclusions>
2323
<exclusion>
2424
<groupId>com.fasterxml</groupId>

jobson-ui/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
<parent>
88
<groupId>com.github.jobson</groupId>
99
<artifactId>jobson-project</artifactId>
10-
<version>1.0.10</version>
10+
<version>1.0.11</version>
1111
</parent>
1212

1313
<artifactId>jobson-ui</artifactId>
14-
<version>1.0.10</version>
14+
<version>1.0.11</version>
1515
<packaging>pom</packaging>
1616

1717
<build>

jobson/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
<parent>
88
<groupId>com.github.jobson</groupId>
99
<artifactId>jobson-project</artifactId>
10-
<version>1.0.10</version>
10+
<version>1.0.11</version>
1111
</parent>
1212

1313
<artifactId>jobson</artifactId>
14-
<version>1.0.10</version>
14+
<version>1.0.11</version>
1515
<packaging>jar</packaging>
1616

1717
<dependencies>

0 commit comments

Comments
 (0)