Sergey Vinogradov
065e609cbf
Refactor "process" package
...
* All context-less wrapping functions (the ones without WithContext
suffix) were moved into process.go since they all are the same.
* Call context is now passed to all underlying functions in
*WithContext() functions.
* All common *BSD bits were moved to process_bsd.go.
* Process.Tgid() method lacked a WithContext counterpart, so
Process.TgidWithContext() was added for uniformity.
* NewProcessWithContext() function was added since NewProcess() is
used a lot throughout the module, and there is no way to pass a
context to it.
This is a part of #761 effort.
2020-10-12 18:15:29 +03:00
Ilya Prudnikov
f3598686cb
Correct returned error (set to nil) in case process is not exist
2020-02-16 19:03:32 +02:00
Ilya Prudnikov
8dec3d81f3
Fix check pid existence when running in different process namespace (container)
2020-01-27 10:56:26 +02:00
Lomanic
5b15bc623c
[process][posix] Fix #607 check pid existence with a signal instead of listing every pids
...
Reference 0d6b91e916/lockfile_unix.go
2019-07-07 16:41:13 +02:00
Michal Rostecki
91ac1d66ac
process: Check for error objects
2018-06-21 16:53:53 +02:00
shirou
4c73494c78
Add WithContext functions.
2017-12-31 15:25:49 +09:00
Sean Chittenden
635b971c0e
Move from the syscall
package to the golang.org/x/sys/{unix,windows}
2017-06-02 13:51:00 -07:00
Sean Chittenden
3834908232
Improve Command() handling and signal handling for launched processes.
2017-04-27 14:11:25 -07:00
tycho garen
22c56d292e
close open files
2017-02-22 08:46:23 -05:00
Marco Pfatschbacher
b4846b445b
Add support for OpenBSD/amd64
...
This code is based on the FreeBSD version
and implements roughly the same feature set.
2016-11-24 22:30:29 +01:00
Shirou WAKAYAMA
1d461a68b6
[process]linux: porcess was not started.
2016-05-20 21:13:52 +09:00
Shirou WAKAYAMA
57f6aebc7e
add Timeout to invoke command and use common.Invoke refs: #201
2016-05-20 17:59:41 +09:00
Shirou WAKAYAMA
9ef341037b
[process]posix: update process signal document
2016-04-20 13:29:54 +09:00
Shirou WAKAYAMA
bce9212def
fix build bugs.
2016-04-01 22:22:03 +09:00
Shirou WAKAYAMA
d21ed2b40d
search path via exec.LookPath before actual invoke.
2016-04-01 22:13:05 +09:00
Shirou WAKAYAMA
13cd195a7e
change package name.
2014-12-30 22:09:05 +09:00
Shirou WAKAYAMA
a4671fcc2a
move subdirectories. refer to issue #24
2014-11-27 10:18:15 +09:00