Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:simonoff
erlang
otp-run_erl.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File otp-run_erl.patch of Package erlang
Index: erts/etc/unix/run_erl.c =================================================================== --- erts/etc/unix/run_erl.c.orig +++ erts/etc/unix/run_erl.c @@ -55,6 +55,8 @@ #include <dirent.h> #include <termios.h> #include <time.h> +#include <pty.h> +#include <utmp.h> #ifndef NO_SYSLOG # include <syslog.h> #endif @@ -887,6 +889,15 @@ static int open_pty_master(char **ptysla /* http://www.xcf.berkeley.edu/~ali/K0D/UNIX/PTY/code/upty.h.html */ { + static char ttyname[] = " "; + if (0 == openpty(&mfd, &sfd, ttyname, NULL, NULL)) { + close(sfd); + *ptyslave = ttyname; + return mfd; + } + } + + { /* New style devpts or devfs /dev/pty/{m,s}{0,1....} */ static char ptyname[] = "/dev/pty/mX";
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor