diff --git a/achilterm.1 b/achilterm.1 index 41892b4..52003df 100644 --- a/achilterm.1 +++ b/achilterm.1 @@ -1,4 +1,4 @@ -.TH achilterm "1" "August 2016" "achilterm 0.19" "User commands" +.TH achilterm "1" "August 2016" "achilterm 0.20" "User commands" .SH NAME Achilterm \- Web based terminal written in python diff --git a/achilterm/achilterm.py b/achilterm/achilterm.py index 1944e75..0b04b74 100755 --- a/achilterm/achilterm.py +++ b/achilterm/achilterm.py @@ -19,7 +19,7 @@ along with this program. If not, see . """ -__version__ = '0.19' +__version__ = '0.20' import array,cgi,fcntl,glob,mimetypes,optparse,os,pty,random,re,signal,select,sys,threading,time,termios,struct,pwd @@ -566,8 +566,8 @@ def main(): if pid == 0: #os.setsid() ? os.setpgrp() - nullin = file('/dev/null', 'r') - nullout = file('/dev/null', 'w') + nullin = open('/dev/null', 'r') + nullout = open('/dev/null', 'w') os.dup2(nullin.fileno(), sys.stdin.fileno()) os.dup2(nullout.fileno(), sys.stdout.fileno()) os.dup2(nullout.fileno(), sys.stderr.fileno()) @@ -578,7 +578,7 @@ def main(): os.setuid(pwd.getpwnam(o.uid).pw_uid) else: try: - file(o.pidfile,'w+').write(str(pid)+'\n') + open(o.pidfile,'w+').write(str(pid)+'\n') except: pass print('Achilterm at http://localhost:%s/ pid: %d' % (o.port,pid))