Commit Graph

8 Commits

Author SHA1 Message Date
Michael Schurter 042305ee4a Remove SetEnv on all platforms 2017-08-16 15:32:21 -07:00
Michael Schurter 565f5c8c5e Alter subprocess's environment instead of the hosts
Fixes #415
2017-08-16 14:54:50 -07:00
Asato Wakisaka 16a38100b3 NumProcs() just counts files under f, so use f.Readdirnames to avoid `lstat` syscall inside f.Readdir. 2017-05-25 00:04:41 +09:00
tycho garen 22c56d292e close open files 2017-02-22 08:46:23 -05:00
Sean Chittenden 613ada987d
Add DoSysctrl() to Linux's common utilities. 2016-08-11 00:48:24 -07:00
Sean Chittenden e0b5f86113
Spell `error` like `err`. *facepalm* 2016-07-11 14:07:55 -04:00
Sean Chittenden a3f57b1314
Resolve cyclic import and create a common helper func, NumProcs() 2016-07-11 14:05:30 -04:00
Daniel Theophanes 0af895258e common: rename package common to internal/common. Add ENV helper funcs.
Package common wasn't used for public functions. Place it in an
internal directory to prevent other packages from using.

Remove the distributed references to "HOST_PROC" and "HOST_SYS"
consts and combine into a common function. This also helps so that
if a env var is defined with a trailing slash all will continue to
work as expected.

Fixes #100
2015-10-18 20:40:01 -07:00