/* Global variables */
+
+#define GNOKII_DEV "/var/gnokii-dev"
+
//extern bool TerminateThread;
/* Local variables */
break;
case -1:
+ if (errno==EINTR)
+ continue;
perror("VM_ThreadLoop - select");
return (false);
#endif
#ifdef DEBUG
- fprintf (stderr, _("Slave pty is %s, calling %s to create /dev/gnokii.\n"), slave_name,
+ fprintf (stderr, _("Slave pty is %s, calling %s to create \"%s\".\n"), slave_name,
#ifndef UCLINUX
mgnokiidev
#else /* UCLINUX */
"<uClinux>"
#endif /* UCLINUX */
- );
+ ,GNOKII_DEV);
#endif /* DEBUG */
#ifndef UCLINUX
#else /* UCLINUX */
/* Remove symlink in case it already exists. Don't care if it fails. */
- unlink ("/dev/gnokii");
+ unlink (GNOKII_DEV);
/* Create symlink */
- err = symlink(slave_name, "/dev/gnokii");
+ err = symlink(slave_name, GNOKII_DEV);
#endif /* UCLINUX */