Skip to content

Commit

Permalink
Merge pull request #14 from vapor/terminal-fix
Browse files Browse the repository at this point in the history
terminal fix
  • Loading branch information
tanner0101 authored Sep 5, 2016
2 parents 97bf570 + 8cb6c18 commit 93ea910
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/Console/Terminal/Terminal.swift
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ public class Terminal: ConsoleProtocol {
_pids.append(pid)
let result = posix_spawnp(pid, argv[0], &fileActions, nil, argv + [nil], env + [nil])

waitpid(pid.pointee, nil, 0)

if result == ENOENT {
throw ConsoleError.fileOrDirectoryNotFound
} else if result != 0 {
Expand Down

0 comments on commit 93ea910

Please sign in to comment.