run_erl and ptys

Jouni Rynö Jouni.Ryno@REDACTED
Wed Jun 30 09:36:31 CEST 2004


The run_erl program does not run with linux 2.6 with udev (Debian
distro), as there are no /dev/ptyX etc files, only /dev/pts -filesystem.

A small hack against the run_erl.c would help:

47a48,49
> #include <pty.h>
> #include <utmp.h>
753a756
>   int sfd;
820a824,831
>   {
>     static char ttyname[] = "                                   ";
>
>     if (0 == openpty(&mfd, &sfd, ttyname, NULL, NULL)) {
>       *ptyslave = ttyname;
>       return mfd;
>     }
>   }

regards
	Jouni
-- 

  Jouni Rynö                            mailto://Jouni.Ryno@fmi.fi/
                                        http://www.geo.fmi.fi/~ryno/
  Finnish Meteorological Institute      http://www.fmi.fi/
  Space Research                        http://www.geo.fmi.fi/
  P.O.BOX 503                           Tel      (+358)-9-19294656
  FIN-00101 Helsinki                    FAX      (+358)-9-19294603
  Finland                               priv-GSM (+358)-50-5302903
  
  "It's just zeros and ones, it cannot be hard"




More information about the erlang-questions mailing list