blob: 487614ecfdb007088ee6550f122c3590dde63183 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
import sys.process._
object Test {
// Program that prints "Success" if the command was successfully run then destroyed
// It will silently pass if the command "/bin/ls" does not exist
// It will fail due to the uncatchable exception in t6488 race condition
def main(args: Array[String]) {
try Process("/bin/ls").run(ProcessLogger { _ => () }).destroy
catch { case _ => () }
println("Success")
}
}
|