Skip to content

Commit

Permalink
Fixes for OpenBSD system.
Browse files Browse the repository at this point in the history
I think that in NetBSD should be similar, but I don't have any machine
to test it.
  • Loading branch information
gibas committed Jul 16, 2013
1 parent d3bf5cc commit 078fa4c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gunicorn_console.py
@@ -1,5 +1,6 @@
#!/usr/bin/env python

import re
import curses
from itertools import count
from subprocess import Popen, PIPE
Expand All @@ -25,10 +26,10 @@

cmd_heading = "CMD"

if "freebsd" in platform:
if re.search("freebsd|openbsd", platform):
cmd_heading = "COMMAND"

if platform == "darwin" or "freebsd" in platform:
if re.search("darwin|freebsd|openbsd", platform):
PS_ARGS = ["ps", "-lx"]

def ports_for_pids(pids):
Expand Down

0 comments on commit 078fa4c

Please sign in to comment.