aboutgitcodebugslistschat
diff options
context:
space:
mode:
-rw-r--r--pasta.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pasta.c b/pasta.c
index 572048d..b4a3d99 100644
--- a/pasta.c
+++ b/pasta.c
@@ -61,6 +61,7 @@ int pasta_child_pid;
*/
void pasta_child_handler(int signal)
{
+ int errno_save = errno;
siginfo_t infop;
(void)signal;
@@ -85,6 +86,8 @@ void pasta_child_handler(int signal)
waitid(P_ALL, 0, NULL, WEXITED | WNOHANG);
waitid(P_ALL, 0, NULL, WEXITED | WNOHANG);
+
+ errno = errno_save;
}
/**