=== modified file 'plugin-runner.c' --- plugin-runner.c 2009-02-05 03:15:43 +0000 +++ plugin-runner.c 2009-02-05 03:26:27 +0000 @@ -223,6 +223,7 @@ /* Mark processes as completed when they exit, and save their exit status. */ static void handle_sigchld(__attribute__((unused)) int sig){ + int old_errno = errno; while(true){ plugin *proc = plugin_list; int status; @@ -250,6 +251,7 @@ proc->status = status; proc->completed = 1; } + errno = old_errno; } /* Prints out a password to stdout */