0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-01-19 16:52:16 +00:00
termux-packages/packages/fish/WIFSTOPPED.patch
2023-04-19 17:14:30 +09:00

14 lines
431 B
Diff

https://github.com/termux/termux-packages/issues/15677
--- a/src/proc.h
+++ b/src/proc.h
@@ -117,7 +117,7 @@
}
/// \return if we are stopped (as in SIGSTOP).
- bool stopped() const { return WIFSTOPPED(status_); }
+ bool stopped() const { return WIFSTOPPED(status_) && !WIFCONTINUED(status_); }
/// \return if we are continued (as in SIGCONT).
bool continued() const { return WIFCONTINUED(status_); }