Skip to content

Commit a982044

Browse files
refactor
1 parent 7e2af0c commit a982044

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

boundary.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ func (b *Boundary) Command(command []string) *exec.Cmd {
7878
return b.jailer.Command(command)
7979
}
8080

81-
func (b *Boundary) ConfigureAfterCommandExecution(processPID int) {
82-
b.jailer.ConfigureAfterCommandExecution(processPID)
81+
func (b *Boundary) ConfigureAfterCommandExecution(processPID int) error {
82+
return b.jailer.ConfigureAfterCommandExecution(processPID)
8383
}
8484

8585
func (b *Boundary) GetNetworkConfiguration() jail.NetworkConfiguration {

cli/cli.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,10 @@ func Run(ctx context.Context, config Config, args []string) error {
235235
logger.Error("Command execution failed", "error", err)
236236
}
237237

238-
boundaryInstance.ConfigureAfterCommandExecution(cmd.Process.Pid)
238+
err = boundaryInstance.ConfigureAfterCommandExecution(cmd.Process.Pid)
239+
if err != nil {
240+
logger.Error("configuration failed", "error", err)
241+
}
239242

240243
err = cmd.Wait()
241244
if err != nil {

0 commit comments

Comments
 (0)