Added wofi_exit(). This allows correct handling of custom exit status codes on non-glibc systems. This function should always be used for exiting wofi as libc exit() will no longer correctly handle error situations.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2020 Scoopta
|
||||
* Copyright (C) 2020-2024 Scoopta
|
||||
* This file is part of Wofi
|
||||
* Wofi is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -58,4 +58,6 @@ bool wofi_mod_control(void);
|
||||
|
||||
void wofi_term_run(const char* cmd);
|
||||
|
||||
void wofi_exit(int status);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user