Skip to content

Commit

Permalink
adjusted for linux nethack-console package
Browse files Browse the repository at this point in the history
  • Loading branch information
bonkydog committed Nov 15, 2009
1 parent 779396b commit f2562e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/game.rb
Expand Up @@ -103,7 +103,7 @@ def unlink_fifos
end

def pid
regexp = /^\s*(\d+)\s+(?!.*pty).*nethack -u #{@user.login}\b/
regexp = /^\s*(\d+)\s+(?!.*pty).*nethack(-console)? -u #{@user.login}\b/
process_list = Game.backtick("ps -eo pid,command")
# logger.info(process_list)
found = regexp.match( process_list)
Expand Down
2 changes: 1 addition & 1 deletion config/environments/production.rb
Expand Up @@ -27,5 +27,5 @@
# Enable threaded mode
# config.threadsafe!

::WEBHACK_CONFIG.nethack_path = "/usr/games/nethack"
::WEBHACK_CONFIG.nethack_path = "/usr/lib/games/nethack/nethack-console"
::WEBHACK_CONFIG.linefeed_handling = "linux"

0 comments on commit f2562e1

Please sign in to comment.