Skip to content
Snippets Groups Projects
Verified Commit b6cf01a4 authored by Yaroslav Dynnikov's avatar Yaroslav Dynnikov
Browse files

refactor: make path to std::process::exit shorter

This patch reduces the variable passing trace length. Instead of
returning it from function to function, call `exit()` in place.

The trace of exit code before the patch:
```
exit() <- main <- main_run <- fork(child) <- tarantool_main
```

And now:
```
exit() <- tarantool_main
```

Type safety is ensured at comilation time by using `!` type for
`fn main()`. See https://doc.rust-lang.org/reference/types/never.html
parent 2873f401
No related branches found
No related tags found
1 merge request!72Fix process management
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment