|
|
|
Re: Error Starting Process: Cannot create pty [message #1768474 is a reply to message #1768436] |
Wed, 19 July 2017 09:05 |
Jonah Graham Messages: 416 Registered: June 2014 |
Senior Member |
|
|
Hi,
Can you file a bug report please. The problem here is that CDT has failed to open the PTY, what I don't understand/know is why that worked in 10.12 and not in 10.13. Perhaps Apple changed something, or perhaps the permissions for /dev/ptyXXX changed?
This is the code that opens the PTY, that as far as I can tell is failing in your case. If you can run this on your computer you can help diagnose the problem.
Call the ptym_open with a char buffer of sufficient size and, if a <0 is returned, please let me know what causes it?
I don't have easy access to a Mac myself, so any support you can provide will be of immense benefit to the whole community.
Thanks,
Jonah
int
ptym_open(char * pts_name)
{
char *ptr1, *ptr2;
int fdm;
strcpy(pts_name, "/dev/ptyXY");
/* array index: 012345689 (for references in following code) */
for (ptr1 = "pqrstuvwxyzPQRST"; *ptr1 != 0; ptr1++) {
pts_name[8] = *ptr1;
for (ptr2 = "0123456789abcdef"; *ptr2 != 0; ptr2++) {
pts_name[9] = *ptr2;
/* try to open master */
fdm = open(pts_name, O_RDWR);
if (fdm < 0) {
if (errno == ENOENT) {/* different from EIO */
return -1; /* out of pty devices */
} else {
continue; /* try next pty device */
}
}
pts_name[5] = 't'; /* chage "pty" to "tty" */
return fdm; /* got it, return fd of master */
}
}
return -1; /* out of pty devices */
}
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03771 seconds