2011-09-16 15:47:21 +00:00
|
|
|
// Copyright 2011 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
2011-10-26 23:57:58 +00:00
|
|
|
// +build darwin freebsd linux openbsd
|
|
|
|
|
2011-09-16 15:47:21 +00:00
|
|
|
package time
|
|
|
|
|
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
"syscall"
|
|
|
|
)
|
|
|
|
|
2011-10-26 23:57:58 +00:00
|
|
|
// for testing: whatever interrupts a sleep
|
|
|
|
func interrupt() {
|
|
|
|
syscall.Kill(os.Getpid(), syscall.SIGCHLD)
|
|
|
|
}
|