Crystal: What does the exit status mean?

Created on 9 Jun 2019  路  3Comments  路  Source: crystal-lang/crystal

status = Process.run("exit 1", shell: true)
status.exit_status # 256
status.exit_code # 1
help-wanted newcomer docs

Most helpful comment

Looks like this issue can be closed. Docs are added by #8014.

All 3 comments

It's the platform-specific exit status code, which usually contains either the exit code or a termination signal. The other Status methods extract the values from exit_status.

This is lacking documentation, help welcome!

Looks like this issue can be closed. Docs are added by #8014.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

asterite picture asterite  路  3Comments

cjgajard picture cjgajard  路  3Comments

Sija picture Sija  路  3Comments

lgphp picture lgphp  路  3Comments

asterite picture asterite  路  3Comments