Comments (7)
I agree. Would allow for hooking actual restart functions, and even better if it were configurable, since that would provide easy functionality for any custom situational restart need that may arise.
Aside from the fact that it really isn't necessary to have two commands do identical things, whole idea just sounds like good sense and good coding IMO.
from fuzzball.
I didn't check to see if @armageddon
also generates a zero exit code. If so, I would definitely suggest lumping that in with the above.
from fuzzball.
This is a good idea. It prompted me to review exit codes for the main server. The main ones seem to be:
code 1:
invalid syntax or inconsistent options
cannot spawn resolver
cannot set socket options
setuid/setguid issues
@armageddon
code 2:
problem loading database
code 3:
output file the same as input file (with DISKBASE on)
cannot create socket
code 4:
cannot cd to game directory
cannot bind socket
code 7:
signal received - bailout
So, compile-time options RESTART_EXIT_CODE (default 0) and ARMAGEDDON_EXIT_CODE (default 1) seem appropriate. Any other option or standardization recommended? It would seem that exit codes 2-4 could just use code 1, but there may be a good reason for the way it is.
from fuzzball.
I am hesitant to change any existing behaviors. Perhaps assign an unused exit code to @restart
, and leave @shutdown
as 0?
from fuzzball.
Yeah, @shutdown
would remain 0. I can change the default for RESTART_EXIT_CODE to 5.
from fuzzball.
Per our conversation on SPR, I'll proceed with compile-time options RESTART_EXIT_CODE (default 0) and ARMAGEDDON_EXIT_CODE (default 1). Look for those soon.
from fuzzball.
Compile-time options RESTART_EXIT_CODE (default 0) and ARMAGEDDON_EXIT_CODE (default 1) have been added to include/config.h .
from fuzzball.
Related Issues (20)
- Cleanup TODO's
- Fix Docker Issues HOT 3
- MUCK sudo command
- Small Request: "DONE" message after @dump HOT 5
- Appveyer Build Failure for Windows HOT 1
- Add allowing registration on login screen by @tune HOT 2
- Review and Document Listener Behaviour HOT 4
- {contents} MPI function does not behave as documented / nonsense exits behavior HOT 1
- READ from MUF called on Welcome Screen causes oddities HOT 1
- {force} allows escape character in input HOT 2
- Use XML to store helpfile content
- Make users always have a new dbref HOT 4
- Improve READ handling on Welcome Screen
- Appveyor build failing with Conan 2.0 HOT 1
- Wizards can GUEST themselves, but can't un-GUEST themselves HOT 3
- It Might Be Possible to Stack Overflow in propqueue(...) in timequeue.c HOT 1
- Idea: categorize messages (including in-server) with prefix coding HOT 3
- Propqueue Documentation Improvement HOT 2
- Oddities and server crash while MUF debugging
- DESCRDBREF is not a direct replacement for CONDBREF HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fuzzball.