#include <syslog.h>
#include "pppd.h"
+char pppd_version[] = VERSION;
+
static char promptprog[PATH_MAX+1];
static option_t options[] = {
int p[2];
pid_t kid;
int readgood, wstat;
- size_t red;
+ ssize_t red;
if (promptprog[0] == 0 || access(promptprog, X_OK) < 0)
return -1; /* sorry, can't help */
if (red == 0)
break;
if (red < 0) {
+ if (errno == EINTR)
+ continue;
error("Can't read secret from %s: %m", promptprog);
readgood = -1;
break;