Skip to content

Commit 795b769

Browse files
authored
Merge pull request #358 from FriendsOfSymfony/fix-build
make travis build more robust
2 parents 899fdcf + db1f0b2 commit 795b769

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Test/Proxy/NginxProxy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function start()
5252
public function stop()
5353
{
5454
if (file_exists($this->pid)) {
55-
$this->runCommand('kill', [file_get_contents($this->pid)]);
55+
$this->runCommand('kill', [trim(file_get_contents($this->pid))]);
5656
}
5757
}
5858

src/Test/Proxy/VarnishProxy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function stop()
6767
{
6868
if (file_exists($this->pid)) {
6969
try {
70-
$this->runCommand('kill', ['-9', file_get_contents($this->pid)]);
70+
$this->runCommand('kill', ['-9', trim(file_get_contents($this->pid))]);
7171
} catch (\RuntimeException $e) {
7272
// Ignore if command fails when Varnish wasn't running
7373
}

0 commit comments

Comments
 (0)