3 ms·
For one thing you can't pass parameters into signal handlers, so the only way to set a flag for your main app is a global variable.
by nitrogen 8y ago
For one thing you can't pass parameters into signal handlers, so the only way to set a flag for your main app is a global variable.