Process::Status

class Process::Status

Overview

The status of a terminated process.

Defined in:

process/status.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.new(exit_status : Int32)Source

Instance Method Detail

def exit_codeSource

If #normal_exit? is true, returns the exit code of the process.

def exit_signalSource

If #signal_exit? is true, returns the Signal the process received and didn't handle. Will raise if #signal_exit? is false.

def exit_status : Int32Source

def normal_exit?Source

Returns true if the process terminated normally.

def signal_exit?Source

Returns true if the process was terminated by a signal.

def success?Source

Returns true if the process exited normally with an exit code of 0.

© 2012–2017 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/0.22.0/Process/Status.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部